IDE: fixed TProcess flags for windows

git-svn-id: trunk@45304 -
This commit is contained in:
mattias 2014-06-02 14:32:06 +00:00
parent 8db63f148a
commit 37a1e9a9c3

View File

@ -567,8 +567,10 @@ begin
inherited Create(aOwner);
FWorkerOutput:=TStringList.Create;
FProcess:=TProcessUTF8.Create(nil);
{$IF FPC_FULLVERSION<20604}
FProcess.InheritHandles:=false;
FProcess.Options:= [poUsePipes];
{$ENDIF}
FProcess.Options:= [poUsePipes{$IFDEF Windows},poStderrToOutPut{$ENDIF}];
FProcess.ShowWindow := swoHide;
fExecuteBefore:=TFPList.Create;
fExecuteAfter:=TFPList.Create;
@ -1102,6 +1104,9 @@ begin
end;
// run and detach
{$IF FPC_FULLVERSION<20604}
Proc.InheritHandles:=false;
{$ENDIF}
Proc.Options:=Proc.Options+[poNoConsole];
try
Proc.Execute;