mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-06 23:58:23 +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;
|
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;
|
||||||
|
Loading…
Reference in New Issue
Block a user