• 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: Under what circumstances will catch (...) not catch?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Under what circumstances will catch (...) not catch?


  • Subject: Re: Under what circumstances will catch (...) not catch?
  • From: Larry Campbell <email@hidden>
  • Date: Wed, 28 Nov 2007 18:29:45 -0500

On Nov 28, 2007, at 6:25 PM, David Rowland wrote:


On Nov 28, 2007, at 3:16 PM, Larry Campbell wrote:

In a large project that worked well under Tiger and Xcode 2.4, I'm having a bizarre problem with Leopard and Xcode 3.0. In the following snippet:

  bool failed = false;
  try {
	minfo.read(instr);
  } catch (...) {
	failed = true;
  }

minfo.read() is expected to throw an exception, and it does, but the runtime acts as though there's no handler in scope and calls abort(), rather than letting my handler run.

How can this be?


any chance that some destructor which is called for a local var is also throwing an exception?

Don't think so -- the debugger shows that the exception resulting in a call to abort is the exception I expected to be thrown.


- lc

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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: Under what circumstances will catch (...) not catch?
      • From: Larry Campbell <email@hidden>
References: 
 >Under what circumstances will catch (...) not catch? (From: Larry Campbell <email@hidden>)
 >Re: Under what circumstances will catch (...) not catch? (From: David Rowland <email@hidden>)

  • Prev by Date: Re: Under what circumstances will catch (...) not catch?
  • Next by Date: Re: Xcode 2.5 and gcc 3 links against libstdC++6.dylib on 10.5 (fails on 10.2.8)
  • Previous by thread: Re: Under what circumstances will catch (...) not catch?
  • Next by thread: Re: Under what circumstances will catch (...) not catch?
  • Index(es):
    • Date
    • Thread