View Single Post
  #4  
Old March 2nd 06, 04:31 PM posted to microsoft.public.outlook.program_addins
Rog
external usenet poster
 
Posts: 62
Default Strange Outlook Add-In problems

I write my COM-addins in C#. So for example
If in the Connect class you had the OnStartupComplete method
make sure you put
try
{

}
catch(System.Exception ex)
{
//logging here
}

in the body of the method. I notice in your
"AddinInstance_OnConnection" method you do a lot of processing which of
course means things can go wrong. If an exception is thrown and it is
not caught Outlook will try to disable your addin.


Christoph wrote:
Rog,
Thank you for your answer. But I don't know what you're meaning by
catching an exception.

Ads