• 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
Exceptions thrown from framework not caught in application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Exceptions thrown from framework not caught in application
      • From: Marshall Clow <email@hidden>
  • Prev by Date: Re: Re: warning: control reaches end of non-void function when using @synchronized
  • Next by Date: Re: Exceptions thrown from framework not caught in application
  • Previous by thread: Re: Distributed Builds of webobjects projects ?
  • Next by thread: Re: Exceptions thrown from framework not caught in application
  • Index(es):
    • Date
    • Thread