• 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: Exceptions not caught by catch(...)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Exceptions not caught by catch(...)


  • Subject: Re: Exceptions not caught by catch(...)
  • From: glenn andreas <email@hidden>
  • Date: Mon, 22 Dec 2008 21:04:23 -0600


On Dec 22, 2008, at 8:06 PM, Michael Williamson wrote:

Short Summary: exceptions are failing to be caught in main, and this includes with a catch(...). After some testing, it looks like the problem only occurs when I'm going through some Carbon event handlers (SendEventToEventTarget and related).
If I trigger the same exception when bypassing this, the exceptions are caught correctly in main.

I've seen reference to the gcc visibility issue with exceptions, but I would have thought catch(...) should avoid that. Plus I've compiled all of this with gcc 4.2 (via XCode 3.1) which I believe has solved that issue?

Any ideas what could cause this?


You can't throw exceptions through the toolbox (or in general, you can't throw exceptions through any library that you didn't compile).

Exception throwing assumes that there is information for stack winding available - the frameworks in general don't, so the stack winding, at best, won't work (and will often crash), and potentially can cause bad things to happen (consider a library compiled with its own exception handling from a previous version of the compiler/runtime that has slightly different fields).



Glenn Andreas                      email@hidden 
 <http://www.gandreas.com/> wicked fun!
JSXObjC | the easy way to unite _javascript_ and Objective C




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

This email sent to email@hidden

  • Follow-Ups:
    • Re: Exceptions not caught by catch(...)
      • From: "Michael Williamson" <email@hidden>
References: 
 >Exceptions not caught by catch(...) (From: "Michael Williamson" <email@hidden>)

  • Prev by Date: Exceptions not caught by catch(...)
  • Next by Date: Re: Exceptions not caught by catch(...)
  • Previous by thread: Exceptions not caught by catch(...)
  • Next by thread: Re: Exceptions not caught by catch(...)
  • Index(es):
    • Date
    • Thread