How to receive memory warning in Corona ?

By | February 18, 2012

In order to receive memory warning in Corona, use the following chunk of code,

local function memoryWarningCheck ( event )
    print( "Memory Warning ! Memory is leaking somewhere! " )
end
Runtime:addEventListener( "memoryWarning", memoryWarningCheck )

🙂

Leave a Reply

Your email address will not be published. Required fields are marked *