JVCL Help:TJvCreateProcess.WaitForTerminate

From Project JEDI Wiki
Jump to navigationJump to search
JEDI Visual Component Library Help

Search in JVCL Help

 
Search in all projects
 

Summary

Indicates whether the component waits for the process to terminate.


Pascal

 propertyWaitForTerminate: Boolean;


Description

Set WaitForTerminate to True to specify that the component must wait for the process to terminate. After calling Run, property State will be set to psWaiting. If the process ends, the State will be set to psReady and the OnTerminate event will be fired. Note that you cannot call Run if the component is waiting for a process to end.
Set WaitForTerminate to False to specify that the component must not wait for the process to terminate. After calling Run, property State will be set to psRunning.
Setting WaitForTerminate to True is useful if you want to take action when the process ends, or if you want to prevent the user to call Run if a process started by TJvCreateProcess is still running. Otherwise set WaitForTerminate to False.
Note that you cannot change WaitForTerminate if State is psWaiting.


See Also

TJvCreateProcess.OnTerminate, TJvCreateProcess.Run, TJvCreateProcess.State, TJvCreateProcess.StopWaiting, TJvCreateProcess.Terminate


About

Notes

If coRedirect is included in ConsoleOptions, the value of WaitForTerminate is ignored. The component will then always wait for the process to terminate.


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page