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

Re: Running out of VM


  • Subject: Re: Running out of VM
  • From: Will Mason <email@hidden>
  • Date: Thu, 22 Dec 2005 11:44:13 -0800 (PST)

Although his description didn't include the word crash, if you actually try what he's describing, you'll see that he's telling the truth. It crashes. Therefore, there's no time to worry about writing anything to the console or exiting gracefully. However, if you are out of memory it's difficult to see what the difference is between a crash and a rapid controlled exit. The result for the user will be the same.

Just a thought,
Will

----- Original Message ----
From: Markus Hitter <email@hidden>
To: Phill Kelley <email@hidden>
Cc: email@hidden
Sent: Thu Dec 22 06:25:55 2005
Subject: Re: Running out of VM


Am 22.12.2005 um 12:08 schrieb Phill Kelley:

> 1. Why are NSData allocations (typically on the order of 2K bytes)
> crashing instead of returning nil?

Your previous description doesn't include a crash. An error message
written to the console doesn't mean the app crashed.

If you're out of memory with allocating objects, an NSLog() will
likely fail, since NSLog tries to allocate objects as well. A printf
() or exit(5) should do better for debugging purposes.


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



_______________________________________________
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: Running out of VM (From: Markus Hitter <email@hidden>)

  • Prev by Date: Re: Add a custom icon to my saved files
  • Next by Date: Re: Lots of items in an NSOutline view.
  • Previous by thread: Re: Running out of VM
  • Next by thread: Cocoa Class for create HUD panel
  • Index(es):
    • Date
    • Thread