On Wed, Jul 15, 2009 at 11:31 AM, Alex Black
Thanks, that fixed it!
My destructor now looks like this:
try { m_pProtoBufStream.reset(); } catch ( std::exception& e ) { cout << endl << "Unexpected exception in ProtoBufStreamAdaptor::~ProtoBufStreamAdaptor: " << e.what() << endl; } catch ( ... ) { cout << endl << "Unexpected exception in ProtoBufStreamAdaptor::~ProtoBufStreamAdaptor" << endl; }
And it does indeed catch an exception. Now my process doesn't die.
I'd replace this with:
try
{
m_pProtoBufStream.reset();
}
catch ( ... )
{
cout << endl << "Unexpected exception caught in " <<
BOOST_CURRENT_FUNCTION << endl <<
boost::current_exception_diagnostic_information();
}
(you'd need to #include