lazhelp: cut handles when starting process

git-svn-id: trunk@43388 -
This commit is contained in:
mattias 2013-11-07 12:50:36 +00:00
parent b25aa3842e
commit 1ae5a24b92
2 changed files with 3 additions and 0 deletions

View File

@ -210,6 +210,7 @@ begin
DebugLn(['TLHelpConnection.StartHelpServer ',cmd]);
{$ENDIF}
with TProcessUTF8.Create(nil) do begin
InheritHandles := false;
ShowWindow:=swoShowNormal;
CommandLine := Cmd;
Execute;

View File

@ -283,6 +283,7 @@ begin
// Exit;
Proc := TProcessUTF8.Create(nil);
Proc.InheritHandles := false;
{$if (fpc_version=2) and (fpc_release<5)}
Proc.CommandLine := Lazbuild+' '+WS+' '+PCP+' '+LHelpProject;
{$else}
@ -539,6 +540,7 @@ begin
end;
Proc := TProcessUTF8.Create(nil);
try
Proc.InheritHandles := false;
{$if (fpc_version=2) and (fpc_release<5)}
Proc.CommandLine := GetHelpExe + ' ' + Format(fHelpExeParams, [FileName, Url]);
{$else}