Removing external lua files and sprite Sheets from memory in Corona -



Removing external lua files and sprite Sheets from memory in Corona -

my application has lot of sprite sheets , respective lua files.i have used director class switch between different screens , have used spritesheet:dispose() statement during screen transition. though application crashing in ipad. have cancelled timers , transitions, removed run time listeners, used collectgarbage() @ enterframe event of run time. yet application crashing. because of external files or other problem? suggestion helpful.

you need provide more information:

it crashing in simulator or on ipad ? if crashing in simulator, lua error in console ? did close other apps on ipad, if have many there not plenty memory app did add together listener low memory, tell whether problem memory or not:

local function handlelowmemory( event ) native.showalert( "low memory!", "please consider closing other applications.." , { "ok" } ); end

runtime:addeventlistener( "memorywarning", handlelowmemory )

lua corona

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -