Michael,

That makes so much sense. Thank you for answering my question.

Please confirm that I gave it correct:

So when  I think I'm destroying the object by setting it to null, I'm
not destroying it at all as there is still a reference to it in the
array. When I create a new object, even though it has the same name,
I'm creating a completely new object, and this object (completely
seperate), too has it's reference stored in the array. I can then set
the new one to null too, but as long as the pointers are still elements
of the array, the objects will exist. If I set the array to point to
null, then I will lose the pointers to the objects and the GC will then
clean up the whole lot.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CTJUG Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/CTJUG-Forum
-~----------~----~----~----~------~----~------~--~---

Reply via email to