Outlook takes long time to shutdown!!!

G

Guest

Hello,
When I close Outlook with my add-in, it takes a long time until the Outlook
process ended.
I handled the OnCloseExplorer(), and I freed my explorer pointer. But I
noticed that it takes about 5-6 seconds between leaving the OnCloseExplorer()
and entering the ::OnDisconnection() callback.
How can I fix this?
 
K

Ken Slovak - [MVP - Outlook]

If this is managed code that can be a function of the garbage collector and
the general slowness of managed code. If it's not managed code then possibly
some other addin is taking time or your release code is taking too much
time. Hard to say with the information you've provided.
 
G

Guest

No. Not managed code.
I'm using C++ !!!

Ken Slovak - said:
If this is managed code that can be a function of the garbage collector and
the general slowness of managed code. If it's not managed code then possibly
some other addin is taking time or your release code is taking too much
time. Hard to say with the information you've provided.
 
K

Ken Slovak - [MVP - Outlook]

Then start checking to see what's taking all that time in your code, a set
of profiler runs maybe. There's no way to tell what's going on from the
information you've provided.
 
M

Michael

Do you have large PSTs or OSTs? If yes, this could have something to do
with the White Space Cleaning Task of Outlook on closing time.... What
if you try it with a fresh file of 300k? Does Outlook close quicker?
-Michael
 

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