Where to Release the Global Level COM objects

Add-in Express™ Support Service
That's what is more important than anything else

Where to Release the Global Level COM objects
 
chathum henegama




Posts: 23
Joined: 2011-02-09
Hi there,
I went through the original discussion that you guys have posted about releasing COM objects. I do understand that the best practice would be
- Create com objects
- Use the Object
- Release the com object

In my add-in i have a configuration file which picks up a public calendar folder fr om outlook public folders and Keep it in the Global Level for me to use it in all the other places wh ere it is necessary.

MY Question is when can i release this COM object. I tried to do it in the AddinModule_AddinBeginShutdown and AddinModule_AddinFinalize but those events never trigger up.

Thanks in Advance.
Posted 09 Feb, 2011 03:27:13 Top
Eugene Astafiev


Add-in Express team


Posts: 8540
Joined: 2007-07-25
Hi Chathum,

It looks like you use Outlook 2010. Am I right?

Please have a look at the Outlook 2010 Fast Shutdown feature and Novel way to handle Outlook 2010 Fast Shutdown articles on our technical blog.
.NET, Extended MAPI, Windows Phone & RT
Posted 09 Feb, 2011 08:59:48 Top
chathum henegama




Posts: 23
Joined: 2011-02-09
Hi There
Yes i am on Outlook 2010. You are a Genius.
Thanks a lot mate.

That was very helpful
Posted 10 Feb, 2011 03:50:07 Top