From: Juergen Lotzmann (czloj++at++ocag.ch)
Date: 05/07/2001 06:23:28
Hi,
I've seen other exception related questions in this list but no
answers ...
As soon as I link any of the Performer libs to my program I get
an abort, the exception is not caught. I'm using Performer 2.4
with SuSE Linux 7.1 (Kernel 2.2.18).
Below you'll find the test program. I hope that there's any
solution to make the C++ exception handlers work.
Regards
Juergen
#include <iostream>
#include <stdexcept>
class EError: public std::exception {};
int
main (int argc, char** argv)
{
try {
cout << "Going to throw exception 'EError'" << endl;
throw EError();
}
catch (EError) {
cout << "Caught EError" << endl;
}
catch (...) {
cout << "Caught unexpected exception" << endl;
}
return 0;
}
/*
output without Performer libs:
Going to throw exception 'EError'
Caught EError
output with Performer libs:
Going to throw exception 'EError'
Abort
*/
-- ============================================================================== Juergen Lotzmann office: 01.2.440 Oerlikon Contraves AG, S-EMI Birchstrasse 155 phone : ++41 1 316 2143 PO Box fax : ++41 1 316 2032 8050 Zurich Switzerland mailto:czloj++at++ocag.ch ==============================================================================
This archive was generated by hypermail 2b29 : Mon May 07 2001 - 06:24:00 PDT