From 1d6c9a8214972e4d589f3659e30eeec6a0f48073 Mon Sep 17 00:00:00 2001 From: vsr Date: Thu, 16 Nov 2017 14:41:29 +0300 Subject: [PATCH] 0023505: Sigsegv with fuse on cylinder and cone - Switch to C++ exception handling mechanism --- src/SalomeApp/SalomeApp_ExceptionHandler.cxx | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/SalomeApp/SalomeApp_ExceptionHandler.cxx b/src/SalomeApp/SalomeApp_ExceptionHandler.cxx index 0dfcba7e2..36534eee5 100644 --- a/src/SalomeApp/SalomeApp_ExceptionHandler.cxx +++ b/src/SalomeApp/SalomeApp_ExceptionHandler.cxx @@ -23,8 +23,6 @@ #include "SalomeApp_ExceptionHandler.h" #include "Utils_CorbaException.hxx" -#include "CASCatch.hxx" - #include #include @@ -55,13 +53,14 @@ bool SalomeApp_ExceptionHandler::handleSignals( QObject* o, QEvent* e ) { bool result = true; - try { + try + { OCC_CATCH_SIGNALS; result = SUIT_ExceptionHandler::internalHandle( o, e ); } - catch(Standard_Failure) { - Handle(Standard_Failure) aFail = Standard_Failure::Caught(); - throw Standard_Failure( aFail->GetMessageString() ); + catch( Standard_Failure& e ) + { + throw Standard_Failure( e.GetMessageString() ); } return result; -- 2.30.2