java me - Handling out of memory exception -


i devloping mobile game..in got out of memory exception in exit when playing multiple times..some of friends said due memory allocation clear memory.. clear memory allocated tiled layer, sprite etc @ each , every level while exit..

i stop thread @ time of exit. handling thread stop in 2 ways given boolean value in while within run method , in exit change boolean value false , next 1 before exit calling thread.interrupt , make thread null..

it hard tell problem suggest use memory profiler catch problem, java me sdk has 1 , nokia s40 emulators have powerful profiler.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -