OUTLOOK STAYS IN MEMORY

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

OUTLOOK STAYS IN MEMORY
i am using OnchangeProperty 
charles van den akker III




Posts: 10
Joined: 2005-11-22
Hi Dmitry...

one thing i have always forgotten to ask about:
When i set my OnPropertyChange event i Add the Objects to a list..

At what point do i free these objects?

Could this be stalling Outlook?
Posted 01 Feb, 2006 08:18:13 Top
Dmitry Kostochko


Add-in Express team


Posts: 2875
Joined: 2004-04-05
Hi Charles,

I think you can use either the OnOLExplorerClose or OnAddInBeginShutdown event handlers.

Posted 01 Feb, 2006 10:55:23 Top
charles van den akker III




Posts: 10
Joined: 2005-11-22
Why do we add these objects to a list and then only free them when we close outlook... or the explorer?

Does MS Outlook use these lists to verify that the the events are added to these items?
Posted 06 Feb, 2006 13:13:16 Top
Dmitry Kostochko


Add-in Express team


Posts: 2875
Joined: 2004-04-05
Hi Charles,

Does MS Outlook use these lists to verify that the the events are added to these items?


Of course, Outlook doesn't know anything about your lists, but it knows its interfaces are used. If you don't free these objects and Outlook interfaces, it may result in Outlook not closing.

Posted 07 Feb, 2006 07:37:42 Top
David Golden




Posts: 11
Joined: 2006-03-07
Hi Dmitry, just wondering in this regard if there is an easy way to FreeandNil all the parts of the ADX interface that are still being used?

Thanks.
Posted 26 Apr, 2006 01:10:14 Top
Dmitry Kostochko


Add-in Express team


Posts: 2875
Joined: 2004-04-05
Hi David,

I am afraid I don't quite understand what you need to do. What interfaces do you like to free, those used in your code or ADX's?

Posted 26 Apr, 2006 08:42:49 Top
David Golden




Posts: 11
Joined: 2006-03-07
Hi Dmitry,

This issue is all good. I finally found the item that I wasn't destroying that was stopping Outlook from Closing.
Posted 26 Apr, 2006 23:32:50 Top