• 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: Exception not being caught
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Exception not being caught


  • Subject: Re: Exception not being caught
  • From: Greg Parker <email@hidden>
  • Date: Mon, 21 Mar 2011 14:19:51 -0700

On Mar 21, 2011, at 2:06 PM, Kyle Sluder wrote:
> On Mon, Mar 21, 2011 at 2:03 PM, Greg Parker <email@hidden> wrote:
>> You can't currently throw an exception across a forwarded call. When the exception unwinder hits the forwarding frame, it stops and the exception goes uncaught. You'll need to put your exception handler at a different level.
>
> Does this limitation exist on the desktop as well?

I'm pretty sure it fails on any platform that uses the modern ABI (iOS and 64-bit Mac), but I can't find the bug report at the moment.

(The problem is that the forwarding machinery is hand-written assembly, and nobody added hand-written exception unwind tables to match. With "zero-cost" exceptions, the unwinder cannot process a frame without its unwind tables.)


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

  • Follow-Ups:
    • Re: Exception not being caught
      • From: Laurent Daudelin <email@hidden>
    • Re: Exception not being caught
      • From: Rick Mann <email@hidden>
References: 
 >Exception not being caught (From: Rick Mann <email@hidden>)
 >Re: Exception not being caught (From: "email@hidden" <email@hidden>)
 >Re: Exception not being caught (From: Rick Mann <email@hidden>)
 >Re: Exception not being caught (From: Greg Parker <email@hidden>)
 >Re: Exception not being caught (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: Exception not being caught
  • Next by Date: Re: Exception not being caught
  • Previous by thread: Re: Exception not being caught
  • Next by thread: Re: Exception not being caught
  • Index(es):
    • Date
    • Thread