Error handling routines are the only PC*MILER Connect functions callable without a server ID. They can be used to diagnose why the engine didn’t initialize.
Other PC*MILER Connect functions return -1 on errors. To find out what went wrong with the function call:
- PCMSGetError to determine the cause of the error. It returns the number of the last error the engine caught.
- PCMSGetErrorString to get the associated error text from PC*MILER|Connect’s resources.
- PCMSGetErrorEx to generate a string indicating at which stop in the trip the error occurred.