View Single Post
  #3  
Old July 12th 06, 03:17 PM posted to microsoft.public.dotnet.general,microsoft.public.dotnet.languages.vb,microsoft.public.outlook.program_addins,microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Outlook Add In suddenly stops loading

That sounds like your addin is using a shared application namespace with
various other Outlook addins. In that case any fault in any of the addins
will cause all of them to stop loading. A better solution is to use a shim
or VSTO to load the addin into its own application namespace so it isn't
affected by problems with other addins and problems with your addin don't
kill all other addins.

For information on shimming Outlook addins see the .NET information at
http://www.microeye.com/resources/res_outlookvsnet.htm.

You must handle all errors in your addin, as you indicate that you are
doing, plus you must release all of your Outlook objects at the correct time
so Outlook can close properly, and for .NET you might have to also
explicitly call the garbage collector and to release all of your COM objects
and then wait for the garbage collector to finish.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Pieter" wrote in message
...
Hi,

I developed an Outlook Add In (VB.NET 2005, for Outlook 2003) that
sometimes suddenly stops loading. I've put everywhere in the code
Exception Handlers, but no Exception is catched.
it seems that other add ins aren't loaded afterwarths (nod32).

Does anybody know a way to find out why an outlook add could do this? and
find out after the problem what caused the problem?

Any help our hints would be really apreciated, thanks a lot in advance,

Pieter


Ads