Re: R: Running out of VM
Re: R: Running out of VM
- Subject: Re: R: Running out of VM
- From: m <email@hidden>
- Date: Sat, 24 Dec 2005 17:37:33 -0800
On Dec 23, 2005, at 1:04 AM, Markus Hitter wrote:
Am 23.12.2005 um 05:25 schrieb Phill Kelley:
The documentation for NSAllocateObject says "Returns nil on failure".
I would have thought that running out of VM constituted a "failure".
Obviously, object allocation doesn't work as documented. Time to
file a Radar.
The only workaround I can think of, is to try to allocate memory
using the regular malloc() first, then to relase this chunk and to
allocate the real object according to the result. A malloc() of
length+1024 bytes should be enough for all situations.
Not sure what the OP is trying to get at, but running out of VM
doesn't necessarily mean that the various subsystems don't have any
available memory. For example, it's possible that some sort of sub-
allocation scheme is in use, no?
_murat
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden