mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-14 10:59:11 +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;
|
ProcessHandle: THandle;
|
||||||
begin
|
begin
|
||||||
ProcessHandle := OpenProcess(SYNCHRONIZE, false, PID);
|
ProcessHandle := OpenProcess(SYNCHRONIZE, false, PID);
|
||||||
WaitForSingleObject(ProcessHandle, INFINITE);
|
if ProcessHandle<>HWND(nil) then begin
|
||||||
|
WaitForSingleObject(ProcessHandle, INFINITE) of
|
||||||
|
CloseHandle(ProcessHandle);
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
{$ELSE}
|
{$ELSE}
|
||||||
{$IFDEF UNIX}
|
{$IFDEF UNIX}
|
||||||
@ -258,6 +261,9 @@ end;
|
|||||||
end.
|
end.
|
||||||
{
|
{
|
||||||
$Log$
|
$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
|
Revision 1.10 2004/11/06 11:29:24 vincents
|
||||||
Changes due to the new fpc unit directory structure.
|
Changes due to the new fpc unit directory structure.
|
||||||
|
|
||||||
|
@ -3935,7 +3935,7 @@ begin
|
|||||||
AncestorType,true));
|
AncestorType,true));
|
||||||
if CInterface=nil then begin
|
if CInterface=nil then begin
|
||||||
// error streaming component -> examine lfm file
|
// error streaming component -> examine lfm file
|
||||||
writeln('ERROR: streaming failed lfm="',LFMBuf.Filename,'"');
|
DebugLn('ERROR: streaming failed lfm="',LFMBuf.Filename,'"');
|
||||||
NewComponent:=nil;
|
NewComponent:=nil;
|
||||||
AnUnitInfo.Component:=NewComponent;
|
AnUnitInfo.Component:=NewComponent;
|
||||||
// open lfm file in editor
|
// open lfm file in editor
|
||||||
@ -10974,6 +10974,9 @@ end.
|
|||||||
|
|
||||||
{ =============================================================================
|
{ =============================================================================
|
||||||
$Log$
|
$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
|
Revision 1.792 2004/11/18 16:01:14 vincents
|
||||||
replaced writeln by DebugLn
|
replaced writeln by DebugLn
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user