I think that in this case you must have a global QAppleLogActuvity object, and its destructor is being run when your exception leaves main().
If that didn’t exist, you might get a stack trace for an unhandled exception at the point of the throw.
I have a vague recollection that you may be able to disable running destructors for global objects at program termination with a build setting. That may or may not help.
I’ve never got this to work in a useful way. What is your policy on use of exceptions? I suggest not using them unless you are actually going to catch them. For unrecoverable fatal errors that “shouldn’t happen”, use assert().
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: