• 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: R: Running out of VM
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: R: Running out of VM
      • From: Alastair Houghton <email@hidden>
    • Re: R: Running out of VM
      • From: m <email@hidden>
References: 
 >Re: R: Running out of VM (From: Phill Kelley <email@hidden>)

  • Prev by Date: Re: Core Data: Is "version" a reserved attribute name?
  • Next by Date: Re: KVO one-step listening but two-step notifying?
  • Previous by thread: Re: R: Running out of VM
  • Next by thread: Re: R: Running out of VM
  • Index(es):
    • Date
    • Thread