Article ID: 291166 - Last Review: March 1, 2004 - Revision: 1.3

OL2002: All COM Add-in Run-Time Errors Must Be Trapped

This article was previously published under Q291166
Expand all | Collapse all

SYMPTOMS

You create an Outlook COM Add-in and when using it, Outlook stops responding (hangs).

CAUSE

The COM Add-in generated an untrapped run-time error.

RESOLUTION

You must use error trapping to prevent all potential run-time errors from happening.

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

MORE INFORMATION

There are various scenarios where Outlook may hang if you create a COM Add-in and the code in the add-in generates an unexpected run-time error. This problem is related to how Office programs interface with the Visual Basic run-time, and is therefore a general limitation of the COM Add-in architecture.

To avoid these scenarios, every line of code within your COM Add-in must use error trapping to prevent any potential run-time errors from occurring.

REFERENCES

For more information about how to implement error trapping in your code, please see the Microsoft Office 2000/Visual Basic Programmer's Guide, chapter 8, "Error Handling and Debugging."

For additional information about available resources and answersto commonly asked questions about Microsoft Outlook solutions, click the article number below to view the article in the Microsoft Knowledge Base:
287530  (http://support.microsoft.com/kb/287530/EN-US/ ) OL2002: Questions About Custom Forms and Outlook Solutions

APPLIES TO
  • Microsoft Outlook 2002 Standard Edition
Keywords: 
kbbug kbnofix KB291166
 

Article Translations

 

Related Support Centers