View Single Post
  #7  
Old July 4th 07, 01:27 PM posted to microsoft.public.outlook.program_addins
Mark J. McGinty
external usenet poster
 
Posts: 56
Default Programmatically enable Add-ins


"balaji chandan" wrote in message
...
I would like to know how to enable Add-ins programmatically when Outlook
crashes for some reason.I tried two ways of doing it, but invain.

I tried a way by deleting the registry entries under
HKCU\Software\Microsoft\Office\11.0\Resiliency, but this requires to
restart
the Outlook for addin to be enabled manually.

Other way is I tried to handle the issue in
IDTExtensibility::OnBeginShutdown() method, but when Outlook crashes the
control does not come here.So i cannot handle it here.
Are there any other ways to handle this issue ?


The question you should be asking yourself is, what is your AddIn doing to
make Outlook crash? Usually the cause is that some object isn't being
released because it has a reference to some other object, or some other
object has a reference to it.


-Mark




Thanks
Balaji



Ads