Mark an object for garbage collection

  • Thread starter Thread starter Yu
  • Start date Start date
Y

Yu

Hi,

Can anyone tell me how I can mark an object for garbage
collection in vb.net?

Thanks,

Yu
 
* "Yu said:
Can anyone tell me how I can mark an object for garbage
collection in vb.net?

Remove the references which point to the object.
 
In addition to removing the references that are pointing to the object
Setting it equal to Nothing will also mark it for GC.

Dan
 

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