• 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: Blocks vs. life, the universe and everything
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Blocks vs. life, the universe and everything


  • Subject: Re: Blocks vs. life, the universe and everything
  • From: Jens Alfke <email@hidden>
  • Date: Sat, 15 Oct 2011 15:06:00 -0700

On Oct 14, 2011, at 4:45 PM, Quincey Morris wrote:

> As an aside, TBH, I've never seen any evidence that uncaught (by my code) exceptions lead to the process being killed. Typically, the process just continues after logging a message. Maybe that's because I'm typically running from Xcode so via the debugger, but I don't know that exceptions (like a NSArray index out of bounds exception) kill the app on customer Macs either.

Raising an exception only kills the process if there is no handler (@catch block) at all on the thread’s stack. Most of the time you’re running on a thread with a runloop, and the runloop has an exception handler. But if you spawn a new thread it won’t have any exception handler, so an uncaught exception will crash.

—Jens_______________________________________________

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: 
 >Blocks vs. life, the universe and everything (From: Quincey Morris <email@hidden>)
 >Re: Blocks vs. life, the universe and everything (From: Greg Parker <email@hidden>)
 >Re: Blocks vs. life, the universe and everything (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: 'Static' items in an NSOutlineView
  • Next by Date: ARC conversion issue problem with Xcode 4.2
  • Previous by thread: Re: Blocks vs. life, the universe and everything
  • Next by thread: Re: Blocks vs. life, the universe and everything
  • Index(es):
    • Date
    • Thread