Outlook AddIn in C# Not Releasing!

  • Thread starter Thread starter TC
  • Start date Start date
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?
 
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.
 
Back
Top