Memory management problems

I have some memory issues with my project. I want to unload the images from memory. but I find that either

  1. using removeSelf(),or
    2.using object=nil,or
    3.display.removeObject(object)
    . I am not able to overcome the memory problems.
    Could you please some suggestions for overcoming this problem? [import]uid: 96608 topic_id: 20635 reply_id: 320635[/import]

That should work fine; what is happening with your memory? Do you have a leak? [import]uid: 52491 topic_id: 20635 reply_id: 80995[/import]

I find inserting all images into a display group and then using Storyboard API the easiest way to manage memory and avoid memory leaks.

As far as managing memory while in a scene and remove an object I do the following:

display.remove( object)  
object = nil  

display.remove( object) is safer and checks to see if an object has already been removed.

If you need more help with your memory problems you’ll have to give us more information/code so we can help you better with the problem.

I hope this helps. [import]uid: 38820 topic_id: 20635 reply_id: 81016[/import]