From 96d15f563fbdedcb88afc41f26ac5e686723236e Mon Sep 17 00:00:00 2001 From: mattias Date: Sun, 25 Feb 2018 16:13:40 +0000 Subject: [PATCH] lazbuild: comment git-svn-id: trunk@57374 - --- ide/exttools.pas | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ide/exttools.pas b/ide/exttools.pas index b80a3ec325..dff47493e3 100644 --- a/ide/exttools.pas +++ b/ide/exttools.pas @@ -595,7 +595,12 @@ begin if MainThreadID=GetCurrentThreadId then AutoFree else if (Application<>nil) then - Application.QueueAsyncCall(@SyncAutoFree,0); + 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; end;