Outlook AddIn in C# Not Releasing!

T

TC

Hello All,

I have a COM AddIn written in C# for Outlook and it is not releasing the
host Outlook application.

I set all of my application-related variables to null, I have the IDispose
interface implemented in both my Outlook class as well as the Connect class.
I have decremented the count to zero using Marshal.ReleaseComObject.

Any ideas?
 
T

TC

Solved my own issue.

Apparently, a local variable that I was using to test for certain Outlook
objects wasn't being released. Once I made the variable private and
decremented it as well, all worked fine.
 

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