• 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: 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
References: 
 >Re: R: Running out of VM (From: Phill Kelley <email@hidden>)
 >Re: R: Running out of VM (From: Markus Hitter <email@hidden>)

  • Prev by Date: Problem with unresponsive app (Shark Trace included)
  • Next by Date: Re: Questions About Hiring a Programmer
  • Previous by thread: Re: R: Running out of VM
  • Next by thread: Re: R: Running out of VM
  • Index(es):
    • Date
    • Thread