PC Review


Reply
Thread Tools Rate Thread

Caching _ExplorerPtr causes slow Outlook shutdown

 
 
Matt Fletcher
Guest
Posts: n/a
 
      19th Jan 2004
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).


 
Reply With Quote
 
 
 
 
Dmitry Streblechenko \(MVP\)
Guest
Posts: n/a
 
      19th Jan 2004
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


"Matt Fletcher" <(E-Mail Removed)> wrote in message
news:buggh9$qna$(E-Mail Removed)...
> 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).
>
>



 
Reply With Quote
 
Matt Fletcher
Guest
Posts: n/a
 
      19th Jan 2004
Dmitry,

thanks for this advice - it fixes the problem.

Matt

"Dmitry Streblechenko (MVP)" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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
>
>
> "Matt Fletcher" <(E-Mail Removed)> wrote in message
> news:buggh9$qna$(E-Mail Removed)...
> > 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).
> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
RE: Slow to start slow to shutdown.. PNutts Windows Vista General Discussion 0 7th Apr 2008 04:36 AM
Slow Startup/Shutdown and Slow Application Load Times =?Utf-8?B?Um9i?= Windows XP Performance 2 10th Feb 2007 07:26 PM
Windows 2000 Server - Slow to shutdown and slow to boot. Jack Microsoft Windows 2000 1 28th Jun 2004 07:33 PM
slow shutdown and slow first rdp connection cs Windows XP Embedded 1 5th Feb 2004 08:49 PM
very slow to start-up and slow to shutdown/XP Bill Windows XP Performance 0 17th Jul 2003 01:51 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:58 PM.