display Groups

is there also a table/group that holds all the display groups? or a function that will return the number of display groups?

i am trying to do an app restart and trying to clear all the groups/objects/listeners and i am not using the director class…

thanks,
amanda [import]uid: 29997 topic_id: 11569 reply_id: 311569[/import]

Create your own. Write a module that stores all display groups in a table, and have each scene register their display group with a function call. I do something similar with my scenes so I can swap between them (menu scene, splash scene, game scene, etc.)

[import]uid: 58455 topic_id: 11569 reply_id: 42021[/import]

so in terms of a reset, what exactly do i have to destroy?

right now, i am destroying all objects within display groups, the display group itself and some random tables i am using.

Do i need to cancel listeners as well? if variables within functions are initialized as local, i don’t have to go through and nil them out, do i? garbage collection does that?

I have used print statements that print out memory usage at enterframe. when my app starts, it should be the same as when it restarts, but its not quite. I must be missing something, but i can’t figure out what. [import]uid: 29997 topic_id: 11569 reply_id: 42305[/import]

You do need to cancel listeners.

It’s going to be near impossible to get things back to initial memory usage. Just make sure it’s not a big leak. [import]uid: 10903 topic_id: 11569 reply_id: 42312[/import]