how to free object

  • Thread starter Thread starter Chris
  • Start date Start date
C

Chris

Hi,

how do I release a reference to an object so that the GC will remove it from
memory the next time it collects ?

in C#:
myObj = null;
in VB.NET :
myObj = Nothing

in C++.NET
myObj = 0; ?? IS THAT CORRECT ??

thnx
Chris
 
Back
Top