Exceptions thrown from framework not caught in application
Exceptions thrown from framework not caught in application
- Subject: Exceptions thrown from framework not caught in application
- From: Walter <email@hidden>
- Date: Thu, 07 Sep 2006 17:20:52 -0400
- Thread-topic: Exceptions thrown from framework not caught in application
Exceptions thrown from my C++ framework are no longer being caught in my C++
application.
At one point in time I needed to change the visibility, but that doesn't
seem to be working any more.
Any ideas?
In the sample code below, the printf is not called and the stack trace looks
like this:
kill
raise
abort
__gnu_cxx::__verbose_terminate_handler
__gxx_personality_v0
std::terminate
__cxa_throw
ThrowException
TestExceptionHandling
Sample code from framework:
class __attribute__((visibility("default"))) MyException
{
public:
MyException(int a);
...
};
void ThrowException()
{
throw MyException(2);
}
Sample code from App:
void TestExceptionHandling()
{
try
{
ThrowException();
}
catch (MyException& me)
{
printf("Successfully caught the exception\n");
}
}
_______________________________________________
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