Memory leaks? COM leaks? Outlook won't unload.

  • Thread starter Thread starter Simon Smith
  • Start date Start date
S

Simon Smith

Hi All -

Are there any tools which can track down memory or COM leaks in a C#
outlook addin?

My addin runs fine, but after one particular task - which completes
sucessfully and can be re-run with no problems - Outlook does not
close. In fact it doesn't call the IDTExtensibility2 shutdown methods
on my addin at all and noton any of the other loaded addins as far as
I can see.

This sounds like a COM reference leak to me from what I can find out.
I've been through my code and can't find any where where I'm not
releasing any COM objects.

Are there any tools which I could use to track down any such leaks or
is there another cause which I could look into?

Thanks -
 
On Sat, 13 Mar 2004 14:00:22 +0000 in article
<[email protected]> in
microsoft.public.outlook.program_addins , Simon Smith
Hi All -

Are there any tools which can track down memory or COM leaks in a C#
outlook addin?

My addin runs fine, but after one particular task - which completes
sucessfully and can be re-run with no problems - Outlook does not
close. In fact it doesn't call the IDTExtensibility2 shutdown methods
on my addin at all and noton any of the other loaded addins as far as
I can see.
Just for the record, this turned out to be a problem with an invisible
form which had a NotifyIcon to show progress in some tasks. Due to the
multi-threaded nature of the environment I was issuing instructions to
it from the wrong thread occasioally: this caused the add-in to hang
(or some of its threads did: I'm a bit inclear on this). Outlook
apparently thought that something was still going on and was waiting
fopr it to end....
 
Back
Top