View Single Post
  #6 (permalink)  
Old 08-04-2007, 03:56 PM
palindrome palindrome is offline
Member
 
Join Date: Aug 2007
Posts: 6
palindrome is on a distinguished road
The garbage collector removes an object from memory when they are no more references to it - i.e. nothing is using it any more. If this didn't happen, you'd just keep using more and more memory as your program ran.
Reply With Quote