Outlook process does not shut down after exiting Outlook

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

Outlook process does not shut down after exiting Outlook
 
Oliver D.




Posts: 54
Joined: 2005-02-03
Outlook process does not shut down after exiting Outlook when addin is installed and registered.

Any ideas why the Outlook process won't stop after exiting Outlook?
This only occurs when the addin is installed and registered.
The addin is functioning correctly (visually/debugged).

Thanks.

Oliver
Posted 08 Apr, 2005 15:46:05 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Hi Oliver.

Try to look the code through and add the Marshal.ReleaseComObject() method whenever Outlook interfaces have been used.
Posted 08 Apr, 2005 16:08:08 Top
Oliver D.




Posts: 54
Joined: 2005-02-03
You were right Sergey.

When you reference an Outlook interface in your thread (since this is a multi-threaded application), Outlook will never shut down.

So, instead of starting a new thread from the AddinModule, I open a new form, hide it and then start the thread on that new form. When all threads have completed, the form will close itself. And that's it. :-)

Thanks for your help.
Posted 17 Apr, 2005 09:41:36 Top