Re: When does Cocoa get "No more!" from malloc?
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