mike mcintyre's

.N e t J o u r n a l

vbCity Blogs moved to:
http://cs.vbcity.com/blogs
  Home :: Syndication  :: Login

OctNovember 2009Dec
SMTWTFS
25262728293031
1234567
891011121314
15161718192021
22232425262728
293012345

Archives

Topics

Source Code

With more Visual Basic Classic COM classes being utilized in VB.NET programs I am getting more questions like:  “What happens to my COM object after I use it?” and “Does the garbage collector destroy my COM object for me?”.

In fact, it is up to you the COM user to ensure the COM object is destroyed when your program has finished using it.

.NET provides the System.Runtime.InteropServices.Marshal.ReleaseComObject method for this purpose.

Read about the ReleaseComObject method.

posted on Thursday, November 04, 2004 3:33 PM