My app has an odd behaviour, randomly after running a LONG time it will crash, the crash is like a freeze up where things stop responding. It doesn’t appear to be a bug in the software, but when it happens the background graphic that is full screen randomly goes pixelated. Could it be that having too many listeners is causing issues?
When you set an object to null, do the listeners that were on that object also get removed automatically? I’m creating dynamic objects and adding dynamic listeners to that object when they are created, so i am unsure how to remove those listeners from the object, since the listener I was passing in was created on the fly.
i.e.
object.addEventListener(“touch”, function() xxxxxx end);
If I do
object.parent:remove(object);
object=nil;
does the event listener stay in some table somewhere? Could this be why my app is crashing? any input appreciated, thanks! [import]uid: 6317 topic_id: 1133 reply_id: 301133[/import]