CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2000
    Posts
    14

    Question How to release a COM object in C#

    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?

  2. #2
    Join Date
    Oct 2001
    Location
    Norway
    Posts
    265
    Not that I know anything about this, but maybe System.Runtime.InteropServices.Marshall.ReleaseComObject is what you are looking for?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured