| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
void uncaughtHandler(void)...
{
try {
printf("Re-throwing.\n");
throw;
} catch(MyException& e) {
printf("MyException\n");
abort();
} catch(...) {
printf("Unknown\n");
abort();
}
}
int main(int argc, char **argv)
{
std::set_terminate(uncaughtHandler);
return myFunction();
}
| References: | |
| >Trouble with C++ exceptions, code (From: Björn Giesler <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.