| Customize Help

Error reporting

You can enable or disable error reporting to the Host screen, using MappControl(). By default, error reporting is enabled. If you disable error reporting, you can still determine the success of a particular function or a sequence of functions, using MappGetError(). In addition, you can assign a user-defined function to handle the event of a MIL error using MappHookFunction().

For an example that uses MappGetError() to determine if the allocation of the default application, default system, default display, and default image buffer is a success, see MAppStart.cpp in the Testing the installation section of Chapter 1: Introduction.

For assistance with debugging your application, see the Matrox Profiler and trace logs section of Chapter 50: Development and debugging tools and techniques.