Caching _ExplorerPtr causes slow Outlook shutdown

M

Matt Fletcher

If I cache an _ExplorerPtr (obtained from Application::ActiveExplorer) in my
addin, Outlook takes significantly longer than normal to shutdown after
closing its GUI - and if Outlook is restarted before it has completely
shutdown, the new instance will abort with no warning (though it will call
IDTExtensibility2::OnBeginShutdown and IDTExtensibility2::OnDisconnection,
but not IDTExtensibility2::OnConnection). Is this a known bug, or a problem
with my code? (I have written a test addin using the VS.Net Addin Wizard,
and it appears to exhibit the same behaviour as my addin).
 
D

Dmitry Streblechenko \(MVP\)

Do you track the Explorer::Close event (where you must dereference the
explorer)?

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top