Hello to all of you,
at the moment, I'm despairing! I don't know why my code doesn't work.
Have a look:
void CMyClass::DoSomething()
{
try
{
DoItNow();
}
catch(...)
{
std::cout << "Exception caught!\n";
}
}
void CMyClass::DoItNow()
{
throw 5;
}
I compiled this code with -fexceptions and when I try to run it, after
the call of DoItNow(), the programm aborts with SIGABRT.
WHY???????????
--
[ See http://www.gotw.ca/resources/clcm.htm
for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]