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?
Printable View
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?
Not that I know anything about this, but maybe System.Runtime.InteropServices.Marshall.ReleaseComObject is what you are looking for?