PA_Quit4D

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

version 2003


PA_Quit4D

ParameterTypeDescription
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


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