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


Guest


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


Guest


Hi Chathum,

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

Please have a look at the http://www.add-in-express.com/creating-addins-blog/2010/05/04/outlook2010-fast-shutdown/ and http://www.add-in-express.com/creating-addins-blog/2010/06/28/handle-outlook2010-fast-shutdown/ articles on our technical blog.
Posted 09 Feb, 2011 08:59:48 Top
chathum henegama


Guest


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