ILE C/C++ Programmer's Guide

Using a Direct Monitor Handler

When an exception occurs, the compiler first attempts to use any direct monitor handler. If there is no direct monitor handler, the exception is mapped to a signal at run time, and the corresponding signal handler is called. By using the #pragma exception_handler directive to enable a direct monitor handler, you avoid the process for both the signal mapping and search for a signal handler.

For all exceptions specified by the #pragma exception_handler directive, the direct monitor handler marks each exception as handled; otherwise the exception is percolated again.

For information about #pragma exception_handler, see the WebSphere Development Studio: ILE C/C++ Compiler Reference.

For more information about using direct monitor handlers, seeWebSphere Development Studio: ILE C/C++ Compiler Reference.


[ Top of Page | Previous Page | Next Page | Table of Contents ]