Release COM objects in .Net

by lichen 2/8/2006 5:50:00 PM

In .Net, the Runtime Callable Wraper (RCW) does not implement IDisposable. So you cannot call Dispose() to free a COM object. COM object would be freed until it is garbage collected.

Fortunately, it is possible to call System.Runtime.InteropServices.Marshal.ReleaseComObject() to release a COM object.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

.Net

Related posts

Comments are closed

Powered by BlogEngine.NET 1.2.0.0
Theme by Mads Kristensen

About the author

Name of author Author name
Something about me and what I do.

E-mail me Send mail

Calendar

<<  September 2010  >>
MoTuWeThFrSaSu
303112345
6789101112
13141516171819
20212223242526
27282930123
45678910

View posts in large calendar

Pages

    Recent comments

    Authors

    Tags

      Disclaimer

      The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

      © Copyright 2010

      Sign in