mike mcintyre's

.N e t J o u r n a l

This blog hosted by:
http://blogs.vbcity.com      
  Home :: Syndication  :: Login

AprMay 2008Jun
SMTWTFS
27282930123
45678910
11121314151617
18192021222324
25262728293031
1234567

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