Error handling, Overview, Error control conditions – Measurement Computing ADLIB WIN User Manual
Page 33

Chapter 8 Error Handling
8-1
8. ERROR HANDLING
8.1 OVERVIEW
All Library functions return 32-bit signed numbers (long). All the positive numbers, 0 through
2,147,483,647 inclusive (0 - 0x7FFFFFFF), are non-error return values from the function.
All the negative numbers are reserved for Error codes. The first 64K error codes, -1 through -65536
inclusive (0xFFFFFFFF - 0xFFFF0000), is reserved for “universal” error codes. The rest, -65537 through -
2,147,483,648 inclusive (0xFFFEFFFF - 0x80000000), are used for “special” error codes.
“Universal” error codes are those that are common to all versions of the Library, for all environments, and
independent of any user code. “Special” error codes are for environment-specific messages, and for
application-specific registered messages.
8.2 ERROR CONTROL CONDITIONS
Several functions are available within the ADLIB library to control certain conditions under which an error
is reported from the library. The following is a list of these functions; see the specific function's definition
for complete details.
AL_SetErrOnReleaseRunning
AL_GetErrOnReleaseRunning
AL_SetErrOnReInitRunning
AL_GetErrOnReInitRunning