]> SALOME platform Git repositories - modules/superv.git/commitdiff
Salome HOME
Modifications to avoid crash after set incorrect input value of
authormkr <mkr@opencascade.com>
Thu, 9 Mar 2006 07:06:07 +0000 (07:06 +0000)
committermkr <mkr@opencascade.com>
Thu, 9 Mar 2006 07:06:07 +0000 (07:06 +0000)
'objref' type for input port.

src/Supervision/SuperV_Impl.cxx

index 6806ada002e139db22e2a2b8399f7391a24b1060..98a78aea5304a9574f2e0a2b361a4790a22c1077 100644 (file)
@@ -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