PA_IsProcessDying


version 2003


PA_IsProcessDying → char

Parameter Type Description
This command does not require any parameters
Function result char 1 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 databas e, 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