Hi everybody,
My problem is somehow strange. I use qt sdk 2010.01 with mingw which includes gcc 4.4.0
I use some code like this
try
{
//call function that throws std::logic_exception("error");
}
catch (const std::logic_exception & ex)
{
//handle exception here
}
try
{
//call function that throws std::logic_exception("error");
}
catch (const std::logic_exception & ex)
{
//handle exception here
}
To copy to clipboard, switch view to plain text mode
Piece a cake? Sure! It's just that gcc terminates the app, exception is never handled.
I tried a
catch(...)
catch(...)
To copy to clipboard, switch view to plain text mode
, doesn''t work either
How is this supposed to work in gcc?????? Is there some special compiler flag to enable this??
Thanks a million
Chris
Bookmarks