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

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


  • Subject: When does Cocoa get "No more!" from malloc?
  • From: Jerry Krinock <email@hidden>
  • Date: Sat, 25 Oct 2008 21:48:09 -0700

One of my users recently found conditions under the memory allocated by my app would become huge. I fixed the problem, but I'm wondering why it behaved differently for he and I.

On his MacBook Pro with Intel Core 2 Duo, 2 GB RAM, and 250 GB hard drive with 160 GB free, it would crash after 4 minutes with this:

malloc: *** mmap(size=2097152) failed (error code=12)
*** error: can't allocate region

This crash occured within Cocoa's -[NSDictionary setObject:forKey:] method.

But on my Mac Mini with Intel Core 2 Duo, 2 GB RAM, and 120 GB hard drive with 25 GB free, all other apps became very slow after a few minutes, but my app would not crash, even after even after my app's VM had run up to 1.7 GB.

We're both running Mac OS 10.5.5. Why did malloc say "No more!" on his Mac, but not on mine?

Jerry Krinock

_______________________________________________

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: Ken Thomases <email@hidden>
  • Prev by Date: Re: Creating Toolbar Items in IB
  • Next by Date: Re: When does Cocoa get "No more!" from malloc?
  • Previous by thread: Re: Sizing strangeness in the land of NSDrawer
  • Next by thread: Re: When does Cocoa get "No more!" from malloc?
  • Index(es):
    • Date
    • Thread