help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



[Overview][Types][Classes] Reference for unit 'process' (#fcl)

TProcess.WaitOnExit

Wait for the program to stop executing.

Declaration

Source position: process.pp line 104

public function TProcess.WaitOnExit: Boolean;

Function result

True means the process was successfully waited on, False indicates some error occurred.

Description

WaitOnExit waits for the running program to exit. It returns True if the wait was succesful, or False if there was some error waiting for the program to exit.

Note that the return value of this function has changed. The old return value was a DWord with a platform dependent error code. To make things consistent and cross-platform, a boolean return type was used.

Errors

On error, False is returned. No extended error information is available, as it is highly system dependent.

See also

TProcess.ExitStatus

  

Exit status of the process.

TProcess.Terminate

  

Terminate a running process

TProcess.Running

  

Determines wheter the process is still running.

Notes

 No notes exist for this page yet. 





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505