Re: Exiting non-POSIX threads?
Re: Exiting non-POSIX threads?
- Subject: Re: Exiting non-POSIX threads?
- From: Greg Parker <email@hidden>
- Date: Thu, 01 Aug 2013 12:14:09 -0700
On Jul 30, 2013, at 10:51 PM, Oleg Krupnov <email@hidden> wrote:
> 1. What is the correct way of terminating the app if the exception
> happens in the main thread? I need the system Crash Reporter to save
> the context and stack trace of the original problem, not of some
> exception handler.
Re-throw the exception and let the uncaught exception handler halt the process. The uncaught exception handler should be able to add the backtrace of the uncaught exception's throw point to the system crash log. Recent OS versions do a better job of recording this, though I can't remember offhand what is in Mountain Lion and what is in Mavericks.
--
Greg Parker email@hidden Runtime Wrangler
_______________________________________________
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