Set Foo = Nothing Explained

Set Foo = Nothing Explained. Set X = Nothing does not destroy the object, it destroys the reference to it. This holds true for VB6 and VB.NET. Understanding the difference in how Garbage collection works in VB6 and VB.NET is a good thing to know. [by Eric Wise]

Show Comments