This site is no longer active and is available for archival purposes only. Registration and login is disabled.

iPhone didReceiveMemoryWarning


iPhone didReceiveMemoryWarning

Postby Namal » Jul 10, 2010 @ 5:45pm

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
User avatar
Namal
pm Member
 
Posts: 14
Joined: Oct 31, 2003 @ 4:09pm


Re: iPhone didReceiveMemoryWarning

Postby edge » Jul 28, 2010 @ 11:03am

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).
EDGELIB: Cross-platform mobile development at your fingertips
http://www.edgelib.com
User avatar
edge
pm Member
 
Posts: 1180
Joined: Aug 22, 2005 @ 3:42pm
Location: The Netherlands


Re: iPhone didReceiveMemoryWarning

Postby Namal » Jul 28, 2010 @ 11:23am

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,
User avatar
Namal
pm Member
 
Posts: 14
Joined: Oct 31, 2003 @ 4:09pm


Return to EDGELIB


Sort


Forum Description

Powerful and affordable C++ middleware solution covering true multi-platform 2D, 3D and network features for Apple iPhone, Windows Mobile, Symbian S60, UIQ, Linux and Windows desktop.

Moderator:

edge

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron