Re: Exiting non-POSIX threads?
Re: Exiting non-POSIX threads?
- Subject: Re: Exiting non-POSIX threads?
- From: Quincey Morris <email@hidden>
- Date: Tue, 30 Jul 2013 10:43:15 -0700
On Jul 30, 2013, at 10:26 , Graham Cox <email@hidden> wrote:
> How often have you encountered an unexpected exception from some low-level code you don't own under circumstances you can't control? If your app crashed every time you'd soon have a reputation for unreliability that is in all probability undeserved. On balance it's better to carry on with some minor glitch than "quit unexpectedly".
Surely the problem with this perspective is that the uncaught exception results in an abrupt transfer of control from the point of the exception back to (approximately) [NSApplication sendEvent:]?
If you don't own the low-level code where the exception was thrown, you can have no confidence that non-stack data structures being maintained by that code -- along with all of the intermediate levels of calling code -- are in any usable state.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden