• 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: Exiting non-POSIX threads?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: IOS force hidden tab to adjust subviews after rotation
  • Next by Date: NSMenuItemCell setMenuItem does not retain?
  • Previous by thread: Re: Exiting non-POSIX threads?
  • Next by thread: Re: Exiting non-POSIX threads?
  • Index(es):
    • Date
    • Thread