Page 1 of 1

iPhone didReceiveMemoryWarning

PostPosted: Jul 10, 2010 @ 5:45pm
by Namal
Hi there,

I can't seem to get low memory warnings callback to work on iPhone.
Did anybody succeed in implementing it in the Edge Framework ? If so, how and where ?

Thanks a bunch,

Philippe

Re: iPhone didReceiveMemoryWarning

PostPosted: Jul 28, 2010 @ 11:03am
by edge
Hi Namal,

EDGELIB doesn't foward the low memory callback. A better approach would be to keep your memory usage low (to prevent this warning from being posted).

We recommend using instruments -> object allocations to monitor the memory usage of your app. Try to keep it below 20MB. Also check for possible memory leaks (a good test is to switch back and forth between screens and check if memory usage increases).

Re: iPhone didReceiveMemoryWarning

PostPosted: Jul 28, 2010 @ 11:23am
by Namal
Hi,

Thanks for the answer, we are of course monitoring the memory consumption, but are getting from time to time a few LowMemWarning (especially on lower end devices like an iPhone3G), which we would have liked to handle correctly, because we found out that the low memory condition doesn't always occur directly from our game (even on a 3G without iOS4.0, mail, and safari for example are somewhat kept alive and comsuming memory), but the most consuming (or foreground) app is killed, sad world, that's usually ours ;)

Best,