Click to See Complete Forum and Search --> : How to release a COM object in C#


Mihu
July 24th, 2002, 07:54 PM
I use a COM object in my program, but I can't find a way to release it when I don't need it. I find this object is released when my application exits. I wish I can release it at any time.
How can I do?

Arild Fines
July 25th, 2002, 02:23 AM
Not that I know anything about this, but maybe System.Runtime.InteropServices.Marshall.ReleaseComObject is what you are looking for?