Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C++ Moderated > Problems with e...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 4 Topic 9516 of 9593
Post > Topic >>

Problems with exception-handling gcc 3.3 Suse 8.2

by "f.laszlo@[EMAIL PROTECTED] " <f.laszlo@[EMAIL PROTECTED] > Apr 17, 2008 at 12:43 PM

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! ]




 4 Posts in Topic:
Problems with exception-handling gcc 3.3 Suse 8.2
"f.laszlo@[EMAIL PRO  2008-04-17 12:43:14 
Re: Problems with exception-handling gcc 3.3 Suse 8.2
Martin York <Martin.Yo  2008-04-17 19:35:17 
Re: Problems with exception-handling gcc 3.3 Suse 8.2
"f.laszlo@[EMAIL PRO  2008-04-18 06:13:15 
Re: Problems with exception-handling gcc 3.3 Suse 8.2
Chris Uzdavinis <cuzda  2008-04-18 06:13:16 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed May 14 19:18:33 CDT 2008.