Re: Running out of VM
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