codetools: made RunTool thread-safe

git-svn-id: trunk@45539 -
This commit is contained in:
mattias 2014-06-15 15:02:29 +00:00
parent c0b4888159
commit a324edb5ae

View File

@ -1256,10 +1256,12 @@ begin
Result:=TStringList.Create; Result:=TStringList.Create;
try try
buf:=''; buf:='';
DbgOut(['RunTool ',Filename]); if MainThreadID=GetCurrentThreadId then begin
for i:=0 to Params.Count-1 do DbgOut(['RunTool ',Filename]);
dbgout(' "',Params[i],'"'); for i:=0 to Params.Count-1 do
Debugln; dbgout(' "',Params[i],'"');
Debugln;
end;
TheProcess := TProcessUTF8.Create(nil); TheProcess := TProcessUTF8.Create(nil);
try try
TheProcess.Executable := Filename; TheProcess.Executable := Filename;