• 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: 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


References: 
 >Exiting non-POSIX threads? (From: Oleg Krupnov <email@hidden>)
 >Re: Exiting non-POSIX threads? (From: Oleg Krupnov <email@hidden>)
 >Re: Exiting non-POSIX threads? (From: Ken Thomases <email@hidden>)
 >Re: Exiting non-POSIX threads? (From: Oleg Krupnov <email@hidden>)

  • Prev by Date: Re: Leak when "drawing too fast"
  • Next by Date: Re: Mixing Obj-C and C "methods"
  • Previous by thread: Re: Exiting non-POSIX threads?
  • Next by thread: Re: Exiting non-POSIX threads?
  • Index(es):
    • Date
    • Thread