P
peter z
Hi,
I'm looking for a decent C# addin sample which will illustrate proper
technique for unloading the addin when Outlook is shut down. The samples
I've seen so far are either in VB6 or they have been very simplistic C#
samples.
I need to write an addin which handles NewInspector events, does something
with the inspector and then politely (but completely) unloads itself when
the user quits the Outlook app. The attempts I've made so far refuse to go
away on shut down even though the only things I'm caching in my
IDTExtensibility2 class are the two object members the VS7.0 wizard inserts
(applicationObject and addInInstance).
I've searched and found references to explorer / inspector wrappers to
achieve this complete unloading with VB6 addins but no C# samples. Anybody
got some?
FWIW, I'm using Outlook 2000, Win2k Pro, and VS7.0. I have created the
modified version of the Interop.Outlook.dll as suggested at
http://www.microeye.com/resources/res_tech_vsnet.htm#Rebuilding. I am
receiving the ExplorerClose event for the final explorer (the main app
window) but when I then set my cached values to null, the app still remains
in memory.
Thanks for any pointers on where to look.
-Peter
I'm looking for a decent C# addin sample which will illustrate proper
technique for unloading the addin when Outlook is shut down. The samples
I've seen so far are either in VB6 or they have been very simplistic C#
samples.
I need to write an addin which handles NewInspector events, does something
with the inspector and then politely (but completely) unloads itself when
the user quits the Outlook app. The attempts I've made so far refuse to go
away on shut down even though the only things I'm caching in my
IDTExtensibility2 class are the two object members the VS7.0 wizard inserts
(applicationObject and addInInstance).
I've searched and found references to explorer / inspector wrappers to
achieve this complete unloading with VB6 addins but no C# samples. Anybody
got some?
FWIW, I'm using Outlook 2000, Win2k Pro, and VS7.0. I have created the
modified version of the Interop.Outlook.dll as suggested at
http://www.microeye.com/resources/res_tech_vsnet.htm#Rebuilding. I am
receiving the ExplorerClose event for the final explorer (the main app
window) but when I then set my cached values to null, the app still remains
in memory.
Thanks for any pointers on where to look.
-Peter