version 2003
PA_Quit4D
Parameter | Type | Description | ||||
This command does not require any parameters |
Description
Calling PA_Quit4D from a 4D Extension has the same effect as calling the 4D command QUIT 4D from a 4D Method.
The decision to quit 4th Dimension is usually made by the user.
Example
Forced quit on fatal error:
. . . some code . . . aCriticalData = MyAllocateMemory( neededBufferSize ); if ( aCriticaldata == 0L ) { //the allocation failed, but we absolutley needed it: time to quit... MyErrorMessage("Please allocate more memory"); // Quit before crash PA_Quit4D(); }
See Also
No reference.
Error Handling
PA_GetLastError always returns eER_NoErr