none
ThisAddIn_Shutdown is not executed, do I need to release the objects that I have created? RRS feed

  • Question

  • VB.NET and Outlook 2013

    ThisAddIn_Shutdown is not called.

    I have added the handler in ThisAddIn_Startup

    e.g:

     AddHandler aHandler.ItemAdd, AddressOf ItemAdded

    I would like to remove the handlers and release some objects in ThisAddIn_Shutdown.

    eg: 

    RemoveHandler aHandler.ItemAdd, AddressOf ItemAdded

    Marshal.ReleaseComObject(aHandler)

    But ThisAddIn_Shutdown  is not called.

    How can I release these objects? or do I need to release them or remove the handlers?

    Thanks,

    Cowcow 

    Monday, August 25, 2014 2:14 PM

Answers

All replies