> >     WaitforSingleObject(ProcessInfo.hProcess, INFINITE);

> While your app is waiting for the process state to become signalled it
will
> be unresponsive. A better way of implementing this is
> repeat
>         Application.ProcessMessages;
> until WaitForSingleObject(ProcessInfo.hProcess,0)=WAIT_OBJECT_0;

Assuming the last parameter of the Wait is a timeout I would set it to an
acceptable
period (say a second or so) so that you're not doing quite so much busy
waiting...

--
Aaron@home


---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to