< Previous by Date Date Index Next by Date >
  Thread Index Next in Thread >

[reSIProcate] DumThread does not catch standard exception


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());
+      }
    }
 }