Using the IgnoreException Fix
Published: June 11, 2010
Updated: June 11, 2010
Applies To: Windows 7, Windows Vista
This section includes information about using the IgnoreException compatibility fix, including the associated issues, the available command-line options and usage, and the recommended fix for a permanent solution.
|Be advised that you should only use this compatibility fix if you are absolutely certain that it is acceptable to ignore the exception. You might experience additional compatibility issues if you choose to incorrectly ignore an exception.|
IgnoreException enables an application to ignore Structure Exception Handling exceptions and to function properly. The IgnoreException fix calls to an internal API which is equivalent to the AddVectoredExceptionHandler public API. The fix then passes a pointer to the exception handler, which handles the exception as defined by the command-line options configured by the end user.
Investigating the Issue
Application-related issues that can be resolved by applying the IgnoreException fix are typically detected by using a debugger tool, which will enable you to extract detailed information about the specific exception. You must understand the code and the behavior of the exception. in order to correctly predict the results of ignoring the exception. You must also follow up with extensive testing to ensure that you are not proceeding with the system in an undefined state after the exception occurs.
The IgnoreException compatibility fix uses the following syntax to specify exceptions.
Where the EXCEPTION_NAME can be one of the following values:
And where the EXCEPTION_LEVEL can be one of the following values, as listed in the following table:
Does not ignore the first exception.
Ignores the first chance exception.
Ignores the second chance exception
Exits the process on the second chance exception.
Fixing Your Code
The application should be modified to resolve the issue that is causing the exception to occur. If that is not possible, you must include error handling that can address the expected exception.