From: mkr Date: Thu, 9 Mar 2006 07:06:07 +0000 (+0000) Subject: Modifications to avoid crash after set incorrect input value of X-Git-Tag: mergeto_trunk_13Mar06~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=91befee864b2d879a088e514f7625f1e5c7a7669;p=modules%2Fsuperv.git Modifications to avoid crash after set incorrect input value of 'objref' type for input port. --- diff --git a/src/Supervision/SuperV_Impl.cxx b/src/Supervision/SuperV_Impl.cxx index 6806ada..98a78ae 100644 --- a/src/Supervision/SuperV_Impl.cxx +++ b/src/Supervision/SuperV_Impl.cxx @@ -712,7 +712,9 @@ SUPERV::Value_ptr SuperV_Impl::StringValue( const char * aStrIOR ) { // return(anAny); } } - catch ( CORBA::BAD_PARAM ) { + catch ( ... ) { // mkr : catch any exception to avoid crash after set incorrect + // value of 'objref' type for input port + //catch ( CORBA::BAD_PARAM ) { // JR : objref or string only ==> the eventual convertion to long or double is done in // the SuperVisionEngine with the real type of the argument