From d826b1f8b2f06aa98ba4cd4fe19f8685e375e6ad Mon Sep 17 00:00:00 2001 From: vsr Date: Tue, 19 Feb 2008 15:09:29 +0000 Subject: [PATCH] Avoid CORBA exception on Session server exiting --- src/Session/SALOME_Session_Server.cxx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Session/SALOME_Session_Server.cxx b/src/Session/SALOME_Session_Server.cxx index ed3c28d06..ee154f69e 100755 --- a/src/Session/SALOME_Session_Server.cxx +++ b/src/Session/SALOME_Session_Server.cxx @@ -707,7 +707,13 @@ int main( int argc, char **argv ) } catch(...) { - std::cerr << "Caught unexpected exception on destroy : ignored !!" << std::endl; + ////////////////////////////////////////////////////////////// + // VSR: silently skip exception: + // CORBA.BAD_INV_ORDER.BAD_INV_ORDER_ORBHasShutdown + // exception is raised when orb->destroy() is called and + // cpp continer is launched in the embedded mode + ////////////////////////////////////////////////////////////// + // std::cerr << "Caught unexpected exception on destroy : ignored !!" << std::endl; } if ( shutdown ) -- 2.39.2