Salome HOME
Corrected for PAL13400.
authorskl <skl@opencascade.com>
Wed, 11 Oct 2006 11:10:03 +0000 (11:10 +0000)
committerskl <skl@opencascade.com>
Wed, 11 Oct 2006 11:10:03 +0000 (11:10 +0000)
src/SMESH_I/SMESH_Gen_i.cxx

index d0eeb8bc0c1d5c92a8e7ed77ae73ffe6eaa7d455..487258b3b69903d7e1aef22d449d90e291f40f74 100644 (file)
@@ -1100,6 +1100,10 @@ CORBA::Boolean SMESH_Gen_i::Compute( SMESH::SMESH_Mesh_ptr theMesh,
       return myGen.Compute( myLocMesh, myLocShape);
     }
   }
+  catch ( std::bad_alloc& exc ) {
+    THROW_SALOME_CORBA_EXCEPTION( "Memory allocation problem",
+                                  SALOME::INTERNAL_ERROR );
+  }
   catch ( SALOME_Exception& S_ex ) {
     INFOS( "Compute(): catch exception "<< S_ex.what() );
   }