mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-10 23:16:09 +02:00
fixed WaitForLazarus: close process handle after use.
git-svn-id: trunk@6269 -
This commit is contained in:
parent
ab6de4e43d
commit
aa5b195a2d
@ -167,7 +167,10 @@ procedure TLazarusManager.WaitForLazarus;
|
||||
ProcessHandle: THandle;
|
||||
begin
|
||||
ProcessHandle := OpenProcess(SYNCHRONIZE, false, PID);
|
||||
WaitForSingleObject(ProcessHandle, INFINITE);
|
||||
if ProcessHandle<>HWND(nil) then begin
|
||||
WaitForSingleObject(ProcessHandle, INFINITE) of
|
||||
CloseHandle(ProcessHandle);
|
||||
end;
|
||||
end;
|
||||
{$ELSE}
|
||||
{$IFDEF UNIX}
|
||||
@ -258,6 +261,9 @@ end;
|
||||
end.
|
||||
{
|
||||
$Log$
|
||||
Revision 1.11 2004/11/19 12:23:43 vincents
|
||||
fixed WaitForLazarus: close process handle after use.
|
||||
|
||||
Revision 1.10 2004/11/06 11:29:24 vincents
|
||||
Changes due to the new fpc unit directory structure.
|
||||
|
||||
|
@ -3935,7 +3935,7 @@ begin
|
||||
AncestorType,true));
|
||||
if CInterface=nil then begin
|
||||
// error streaming component -> examine lfm file
|
||||
writeln('ERROR: streaming failed lfm="',LFMBuf.Filename,'"');
|
||||
DebugLn('ERROR: streaming failed lfm="',LFMBuf.Filename,'"');
|
||||
NewComponent:=nil;
|
||||
AnUnitInfo.Component:=NewComponent;
|
||||
// open lfm file in editor
|
||||
@ -10974,6 +10974,9 @@ end.
|
||||
|
||||
{ =============================================================================
|
||||
$Log$
|
||||
Revision 1.793 2004/11/19 12:23:43 vincents
|
||||
fixed WaitForLazarus: close process handle after use.
|
||||
|
||||
Revision 1.792 2004/11/18 16:01:14 vincents
|
||||
replaced writeln by DebugLn
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user