Re: C++ exception inside -[NSString drawWithRect:options:attributes:]
Re: C++ exception inside -[NSString drawWithRect:options:attributes:]
- Subject: Re: C++ exception inside -[NSString drawWithRect:options:attributes:]
- From: James Walker <email@hidden>
- Date: Mon, 28 Sep 2009 11:52:20 -0700
Kyle Sluder wrote:
On Mon, Sep 28, 2009 at 11:21 AM, James Walker <email@hidden> wrote:
The drawing seems to work, I'm just curious, and this hasn't happened before
Snow Leopard.
Because of the unified exception model, code that throws and catches
exceptions as a matter of course will trip up the debugger if it's set
to break on exceptions. C++ code uses exceptions as a control-flow
mechanism, whereas Cocoa reserves them for programmer error. There
are a few frameworks (Security is a big one I believe) that are
written in C++ under the hood and make normal C++-ish use of
exceptions.
IOW, breaking on exceptions can lead to this sort of behavior, and
there's nothing you can do about it. :(
I thought the unified exception model was only in 64 bit code? I don't
see what that would have to do with it anyway, since I was trying to
break on C++ exceptions, and did get a C++ exception.
I wonder if Xcode used to have some trickery to hide Apple's C++
exceptions, and show me only my own C++ exceptions, and that got broken?
I guess I should ask on the Xcode list.
--
James W. Walker, Innoventive Software LLC
<http://www.frameforge3d.com/>
_______________________________________________
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