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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top