You are here: AxTools > CodeSMART 2007 for VB6 > Documentation > User's Guide > Error Handling > Adding and Removing the Exception Handling Module
While browsing this page, why not start downloading the evaluation setup kit (direct download, no questions asked).

Adding and Removing the Exception Handling Module

To add the Exception Handling module to your projects:

  1. Open the project you want to insert the Exception Handling module in. Make sure that the project is not read-only.
  2. Click Add Exception Handling Module in the CodeSMART main menu. A standard module named MExceptionHandler will be added to your project.
  3. You should install the exception filter in your program's starting point (e.g. in Main or Form_Load) by calling InstallExceptionHandler and uninstall it when your program is about to exit (usually in Form_Unload) by calling RemoveExceptionHandler. For a complete understanding of the MExceptionHandler module please read its documentation page.

To remove the Exception Handling module from your projects:

  1. Open the project containing the Exception Handling module. Make sure that the project is not read-only.
  2. In the CodeSMART Project Explorer click the module named MExceptionHandler and select Remove from the shortcut menu, or press the <Del> key.
  3. If applicable, you should manually remove all references to the MExceptionHandler public members from your code.
See also
Error Handling Overview
Error Handling Schemes And Assignments
Error Handling Scheme Modifiers
Inserting and Removing Error Handlers
Inserting and Removing Line Numbers
Inserting and Removing Line Numbers from Command Line
Exception Handling Basics

Back To Top

Copyright © 2008 AxTools - CodeSMART 2007 for VB6 - Error Handling