PA_IsProcessDying

4D - Documentation   Français   English   German   4D Plugin API, Command Theme List   4D Plugin API, Command Alphabetical List   Back   Previous   Next

version 2003


PA_IsProcessDying char

ParameterTypeDescription
This command does not require any parameters
Function resultchar1 if the external process must stop running

Description

The routine PA_IsProcessDying returns 1 if the external process is "dying" : the user has just chose Quit, Open database, New database, has clicked the "Abort" button of the Runtime explorer, or the QUIT command was called.

PA_IsProcessDying must be called in the main event loop of external processes. Once the routine has returned 1, the code must exit the loop, clean up memory if necessary and then call PA_KillProcess.

Example

See PA_NewProcess for an example of use.

See Also

PA_KillProcess, PA_NewProcess, PA_WaitNextEvent.

Error Handling

PA_GetLastError always returns eER_NoErr


4D - Documentation   Français   English   German   4D Plugin API, Command Theme List   4D Plugin API, Command Alphabetical List   Back   Previous   Next