Hi,
I am facing a problem with exception handling code in Xcode. I have
code like following:
typedef short EXCPTN;
void my_func()
{
try
{
A(); // Inside this function a exception of type EXCPTN is thrown;
}
catch( EXCPTN ex)
{
//handling code here, doesn't get hit.
}
catch(...)
{
//handling code here. doesn't get hit.
}
}
As soon as the exception is thrown inside method A(), the application
gets terminated. Essentially it doesn't come to the handler which I
have written here. The same piece of code works fine using Visual
Studio 2005. I am building it with -fexceptions compiler option. I
tried to remove -fvisibility=hidden, which is on by default, even that
did not help.
The Xcode version: 2.3, using GCC: 4.0.
Has anyone faced this problem or have some idea about what to do here?
Thanks.
GJ