• 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: When does Cocoa get "No more!" from malloc?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: When does Cocoa get "No more!" from malloc?


  • Subject: Re: When does Cocoa get "No more!" from malloc?
  • From: Jerry Krinock <email@hidden>
  • Date: Thu, 30 Oct 2008 05:56:59 -0700


On 2008 Oct, 25, at 21:58, Ken Thomases wrote:

On Oct 25, 2008, at 11:48 PM, Jerry Krinock wrote:

Why did malloc say "No more!" on his Mac, but not on mine?

Because you didn't let yours run amok for long enough.

Thank you, Ken. I thought I did, but maybe I didn't.

If your app is leaking memory on a (more or less) continuous basis, it will eventually get an error like your user got. You just have to let it keep at it.

An internet search shows me that the error message...

   malloc: *** mmap(size=2097152) failed (error code=12)

is quite common.

What is the significance of the number 2097152, besides the fact that it is 2^21? I suppose is the limit of how much malloc will give any app? 2097152 what? What are the units? Is this set or documented anywhere?

_______________________________________________

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: When does Cocoa get "No more!" from malloc?
      • From: "Shawn Erickson" <email@hidden>
    • Re: When does Cocoa get "No more!" from malloc?
      • From: "Chris Suter" <email@hidden>
    • Re: When does Cocoa get "No more!" from malloc?
      • From: "Michael Ash" <email@hidden>
References: 
 >When does Cocoa get "No more!" from malloc? (From: Jerry Krinock <email@hidden>)
 >Re: When does Cocoa get "No more!" from malloc? (From: Ken Thomases <email@hidden>)

  • Prev by Date: Re: filtering a tableView from a pulldown
  • Next by Date: Re: NSBezierPath problems, seems to be two bugs [solved]
  • Previous by thread: Re: When does Cocoa get "No more!" from malloc?
  • Next by thread: Re: When does Cocoa get "No more!" from malloc?
  • Index(es):
    • Date
    • Thread