D
Dave Townsend
I am working on a pretty simple addin in C# and I noticed that when it
was installed Outlook would take a while to shutdown. On Outlook 2000 it
doesn't shut down at all which is a major concern. I seem to have
narrowed this down to the NewExplorer event.
If I register an event handler with NewExplorer then on outlook 2003 the
shutdown time rises from under a second to about 7 seconds and on
outlook 2000 it doesnt shut down at all (tried leaving for half an hour).
I have narrowed it down to the point that I am actually only registering
an empty event handler. With it registered, which should cause no
difference to the code, I get problems, without nothing. I am freeing
all object references as the last explorer is closed (I have traced to
check that this happens) so there should be no object references laying
around. I have also tried this with and without shim with no difference.
I then tried the same thing with the NewInspector event and found the
same problem. Interestingly with only NewInspector handled Outlook takes
7 seconds to shut down. With only NewExplorer registered it is also 7
seconds. With both it is also 7 seconds. With neither shutdown is near
instant.
Has anyone come across this before and knows what might be causing it
and how to fix it?
Dave
was installed Outlook would take a while to shutdown. On Outlook 2000 it
doesn't shut down at all which is a major concern. I seem to have
narrowed this down to the NewExplorer event.
If I register an event handler with NewExplorer then on outlook 2003 the
shutdown time rises from under a second to about 7 seconds and on
outlook 2000 it doesnt shut down at all (tried leaving for half an hour).
I have narrowed it down to the point that I am actually only registering
an empty event handler. With it registered, which should cause no
difference to the code, I get problems, without nothing. I am freeing
all object references as the last explorer is closed (I have traced to
check that this happens) so there should be no object references laying
around. I have also tried this with and without shim with no difference.
I then tried the same thing with the NewInspector event and found the
same problem. Interestingly with only NewInspector handled Outlook takes
7 seconds to shut down. With only NewExplorer registered it is also 7
seconds. With both it is also 7 seconds. With neither shutdown is near
instant.
Has anyone come across this before and knows what might be causing it
and how to fix it?
Dave