• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Coding with VM limitation on the iPhone?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Coding with VM limitation on the iPhone?


  • Subject: Re: Coding with VM limitation on the iPhone?
  • From: Jonathon Kuo <email@hidden>
  • Date: Tue, 18 Aug 2009 16:53:00 -0700

On Aug 18, 2009, at 4:37 PM, Luke the Hiesterman wrote:

Your app will not be paged to the disk at all. It must run entirely on in physical memory. To know when you're running out of memory, override -[UIViewController didReceiveMemoryWarning]

On Aug 18, 2009, at 4:38 PM, Alex Kac wrote:

You typically only get about 5-40MB of available RAM. Its not flash. Its real RAM. But you have no guarantees. The iPhone has a robust memory system with low memory warnings and such and you just have to use those to determine if you have enough.

Hmm, that's kind of a harsh environment... The notification mechanism is great for the purpose of controlling bloat, but doesn't tell you how much VM you have to play with at the outset. I suppose all I can do is *try* to alloc() and if it fails, well, then what? It sounds like it's mostly out of my control if whatever else is running has already consumed VM. Gotta rethink this entire thing.


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Coding with VM limitation on the iPhone?
      • From: David Duncan <email@hidden>
    • Re: Coding with VM limitation on the iPhone?
      • From: Steve Christensen <email@hidden>
References: 
 >Coding with VM limitation on the iPhone? (From: Jonathon Kuo <email@hidden>)
 >Re: Coding with VM limitation on the iPhone? (From: Luke the Hiesterman <email@hidden>)

  • Prev by Date: How to make it bounce!
  • Next by Date: Re: How to make it bounce!
  • Previous by thread: Re: Coding with VM limitation on the iPhone?
  • Next by thread: Re: Coding with VM limitation on the iPhone?
  • Index(es):
    • Date
    • Thread