Re: Exiting non-POSIX threads?
Re: Exiting non-POSIX threads?
- Subject: Re: Exiting non-POSIX threads?
- From: Scott Ribe <email@hidden>
- Date: Tue, 30 Jul 2013 07:14:13 -0600
On Jul 30, 2013, at 3:13 AM, Oleg Krupnov <email@hidden> wrote:
> I'd disagree. This thread has already crashed and its exception was
> not caught, and so the thread is about to be terminated with or
> without my intervention. Killing it myself would hardly produce any
> side effects. I just want to prevent the entire app from termination
> and so far it seems darn impossible.
The entire app is about to terminated precisely because the thread is in an unknown corrupt state, likely having corrupted the heap or stack, and possibly holding a crucial lock or other resource, so continuing is completely unreliable.
If your goal is to present a dialog to the user and ask that the user send diagnostic info to you, use an external process monitoring your logs and/or crash reports. (And don't try to log after an unhanded exception; log info before.)
--
Scott Ribe
email@hidden
http://www.elevated-dev.com/
(303) 722-0567 voice
_______________________________________________
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