From b954691645fc430f11345539292ad7bcacdabfbe Mon Sep 17 00:00:00 2001 From: mattias Date: Sun, 25 Feb 2018 16:28:35 +0000 Subject: [PATCH] lazbuild: comment git-svn-id: trunk@57375 - --- ide/exttools.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ide/exttools.pas b/ide/exttools.pas index dff47493e3..e0a2659d1c 100644 --- a/ide/exttools.pas +++ b/ide/exttools.pas @@ -583,6 +583,7 @@ procedure TExternalTool.SetThread(AValue: TExternalToolThread); var CallAutoFree: Boolean; begin + // Note: in lazbuild ProcessStopped sets FThread:=nil, so SetThread is not called. EnterCriticalSection; try if FThread=AValue then Exit; @@ -598,7 +599,6 @@ begin Application.QueueAsyncCall(@SyncAutoFree,0) else begin - // Note: lazbuild has Application=nil and frees threads via the main thread debugln(['WARNING: (lazarus) TExternalTool.SetThread can not call AutoFree from other thread']); end; end;