[reSIProcate] DumThread does not catch standard exception
- From: Volodymyr Tarasenko <tvntsr@xxxxxxxxx>
- Date: Mon, 30 Aug 2010 12:08:19 -0700 (PDT)
Hi,
As I see DumThread::thread does not catch exceptions except BaseException, but
some times std::exception could be risen in the DUM handlers especially when
some std stuff is used in the application.
Of course Dum.internalProcess could handle it, but I think any thread
function/method in C++ should catch all standard exception...
The patch in the attachment...
Regards,
Volodymyr!
--- resip/dum/DumThread.cxx
+++ resip/dum/DumThread.cxx
@@ -28,6 +28,10 @@
{
WarningLog (<< "Unhandled exception: " << e);
}
+ catch (std::exception& e)
+ {
+ WarningLog (<< "Unhandled exception: " << e.what());
+ }
}
}