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

Re: throw c++ exception abort app


  • Subject: Re: throw c++ exception abort app
  • From: "Alastair J.Houghton" <email@hidden>
  • Date: Thu, 10 Jul 2003 22:36:32 +0100

On Thursday, July 10, 2003, at 09:40 pm, Gerard Iglesias wrote:

I am trying to finish a parser made with antlr in a Cocoa project (a
rib parser) but I have a big problem to get it usable, because in case
of not token recognized the throwed exception in the C++ antlr
generated code abort the program in place of raising and catching it?

According to Apple's documentation (not sure where I read this though), there are problems with exceptions if you mix Objective C and C++ code in the same application. You need to make sure that C++ exceptions aren't thrown through Objective C parts of your program and vice-versa, otherwise bad things might happen.

The other problem you might be suffering from is that GCC's C++ exception handling was a bit buggy on PowerPC in the 2.95 compiler; I had a problem with similar symptoms to what you describe (although in my case it was terminating in unexpected() because an exception specification wasn't matching [despite the exception being thrown being the one listed in the specification]). If you are using 2.95, try changing to 3.1 or even 3.3.

Kind regards,

Alastair.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: throw c++ exception abort app
      • From: Gerard Iglesias <email@hidden>
    • Re: throw c++ exception abort app
      • From: Gerard Iglesias <email@hidden>
References: 
 >throw c++ exception abort app (From: Gerard Iglesias <email@hidden>)

  • Prev by Date: Re: Creating Really Big TIFF's
  • Next by Date: NSExceptionHandlerUncaughtSignalHandler
  • Previous by thread: throw c++ exception abort app
  • Next by thread: Re: throw c++ exception abort app
  • Index(es):
    • Date
    • Thread