PDA

View Full Version : i think i've found my error



Aquilonian
May 5th, 2007, 07:06 AM
I want to delete something having only his name.If i getReferenceByName and make that reference = null, what i am really doing is nothing, isnt it?Cos its not removing from memory the thing i want to remove;there are other references for it, isnt it?
Maybe thats why my game is so slow

Dazzer
May 5th, 2007, 07:38 AM
object gets deleted only when there's no more references to it. So yeh, there MAY be a reference to it somewhere.Event Listeners, or something.