Re: Exception not being caught
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