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 2004Dec
SMTWTFS
31123456
78910111213
14151617181920
21222324252627
2829301234
567891011

Archives

Topics

Source Code

Thursday, November 04, 2004 #

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 @ 3:33 PM