Re: R: Running out of VM
Re: R: Running out of VM
- Subject: Re: R: Running out of VM
- From: Markus Hitter <email@hidden>
- Date: Fri, 23 Dec 2005 10:04:43 +0100
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.
Markus
- - - - - - - - - - - - - - - - - - -
Dipl. Ing. Markus Hitter
http://www.jump-ing.de/
_______________________________________________
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