• 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: c++ exceptions causing abort
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: c++ exceptions causing abort


  • Subject: Re: c++ exceptions causing abort
  • From: John Stiles <email@hidden>
  • Date: Mon, 13 Dec 2004 08:40:53 -0800

This isn't possible. As a general rule of thumb, if you didn't compile it yourself, you probably can't throw through it.
Try catching all throws at as low a level as possible without going back into AppKit, like this:

Our c++ code - throw occurs here.
Our c++ code
Our c++ code - try catching here
App Kit / Foundation
App Kit / Foundation
App Kit / Foundation
App Kit / Foundation
Our handler
App Kit / Foundation
App Kit / Foundation
Root of the stack

And then post some sort of notification so the run-loop can know what's going on.


On Dec 13, 2004, at 8:09 AM, Benjohn wrote:

Please could someone tell me if this is not possible (c++ exceptions can't be thrown through app kit / foundation methods, for eg). Alternatively, could someone confirm if it's definitely possible, and we must have something set up wrong.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: c++ exceptions causing abort
      • From: Benjohn <email@hidden>
References: 
 >c++ exceptions causing abort (From: Benjohn <email@hidden>)

  • Prev by Date: Re: How can I implement labels without the overhead of an NSTextField?
  • Next by Date: Re: waiting on a thread
  • Previous by thread: c++ exceptions causing abort
  • Next by thread: Re: c++ exceptions causing abort
  • Index(es):
    • Date
    • Thread