• 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: Catching application errors
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Catching application errors


  • Subject: Re: Catching application errors
  • From: Mike Laster <email@hidden>
  • Date: Wed, 24 Aug 2005 15:10:06 -0400


On Aug 22, 2005, at 2:22 PM, Nick Zitzmann wrote:


On Aug 22, 2005, at 11:51 AM, Kaspar Fischer wrote:


How can I catch exceptions (like out-of-range errors in
objectAtIndex:) and handle them myself, e.g. by showing
an error alert with a warning?


Take a look at the NSExceptionHandler class that comes with the built-in ExceptionHandling framework.

That hasn't worked properly since 10.1. When a system error occurs, a private thread in the ExceptionHandling loop goes
into a tight spin eating all of your CPU cycles until you kill the offending process. Much worse than just dying like it would
do without using ExceptionHandling.framework. I filed a bug report about it in 10.2, 10.3 and 10.4.


Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Catching application errors
      • From: Michael Clark <email@hidden>
References: 
 >Catching application errors (From: Kaspar Fischer <email@hidden>)
 >Re: Catching application errors (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: Re: Slightly OT (Rant: Problems with CIImageAccumulator and friends)
  • Next by Date: Re: NSBrowser bug
  • Previous by thread: Re: Catching application errors
  • Next by thread: Re: Catching application errors
  • Index(es):
    • Date
    • Thread