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! " )
Runtime:addEventListener( "memoryWarning", memoryWarningCheck )


Website Pin Facebook Twitter Myspace Friendfeed Technorati Digg Google StumbleUpon Premium Responsive

Leave a Reply

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