mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-04 23:38:15 +02:00
codetools: made RunTool thread-safe
git-svn-id: trunk@45539 -
This commit is contained in:
parent
c0b4888159
commit
a324edb5ae
@ -1256,10 +1256,12 @@ begin
|
||||
Result:=TStringList.Create;
|
||||
try
|
||||
buf:='';
|
||||
DbgOut(['RunTool ',Filename]);
|
||||
for i:=0 to Params.Count-1 do
|
||||
dbgout(' "',Params[i],'"');
|
||||
Debugln;
|
||||
if MainThreadID=GetCurrentThreadId then begin
|
||||
DbgOut(['RunTool ',Filename]);
|
||||
for i:=0 to Params.Count-1 do
|
||||
dbgout(' "',Params[i],'"');
|
||||
Debugln;
|
||||
end;
|
||||
TheProcess := TProcessUTF8.Create(nil);
|
||||
try
|
||||
TheProcess.Executable := Filename;
|
||||
|
Loading…
Reference in New Issue
Block a user