mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-13 14:29:33 +02:00
ProcessDebugger: Fixed crash, due to debugger destroying inside SetState
git-svn-id: trunk@61544 -
This commit is contained in:
parent
787897eba2
commit
c40bffbdee
@ -91,8 +91,14 @@ end;
|
|||||||
procedure TProcessDebugger.ProcessDestroyed(Sender: TObject);
|
procedure TProcessDebugger.ProcessDestroyed(Sender: TObject);
|
||||||
begin
|
begin
|
||||||
FProcess := nil;
|
FProcess := nil;
|
||||||
if State <> dsIdle then
|
|
||||||
SetState(dsStop);
|
LockRelease;
|
||||||
|
try
|
||||||
|
if State <> dsIdle then
|
||||||
|
SetState(dsStop);
|
||||||
|
finally
|
||||||
|
UnlockRelease;
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TProcessDebugger.ProcessEnvironment(const AVariable: String; const ASet: Boolean): Boolean;
|
function TProcessDebugger.ProcessEnvironment(const AVariable: String; const ASet: Boolean): Boolean;
|
||||||
|
Loading…
Reference in New Issue
Block a user