mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 14:40:24 +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);
|
||||
begin
|
||||
FProcess := nil;
|
||||
if State <> dsIdle then
|
||||
SetState(dsStop);
|
||||
|
||||
LockRelease;
|
||||
try
|
||||
if State <> dsIdle then
|
||||
SetState(dsStop);
|
||||
finally
|
||||
UnlockRelease;
|
||||
end;
|
||||
end;
|
||||
|
||||
function TProcessDebugger.ProcessEnvironment(const AVariable: String; const ASet: Boolean): Boolean;
|
||||
|
Loading…
Reference in New Issue
Block a user