NotifyStopOnError()

This handler is called whenever a critical internal error has occurred. Supply code to perform all actions necessary to perform a clean exit.

The possible critical error values for the AMIP API are defined in the CAMPIBase class as is the GetLastError() function you can use to get the last error value.

More information

Command Handlers.