]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
PAL14921 (memory limitation and Salome freeze)
authoreap <eap@opencascade.com>
Fri, 18 May 2007 10:04:16 +0000 (10:04 +0000)
committereap <eap@opencascade.com>
Fri, 18 May 2007 10:04:16 +0000 (10:04 +0000)
-  catch ( std::bad_alloc& exc ) {
-    THROW_SALOME_CORBA_EXCEPTION( "Memory allocation problem",
-                                  SALOME::INTERNAL_ERROR );
+  catch ( std::bad_alloc ) {
+    INFOS( "Compute(): lack of memory" );

src/SMESH_I/SMESH_Gen_i.cxx

index 71f2b8cd916d874b60a2e936153219647d8e6612..14a855d2c47aebceb6a7adac851c3476377678ac 100644 (file)
@@ -1161,9 +1161,8 @@ 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 ( std::bad_alloc ) {
+    INFOS( "Compute(): lack of memory" );
   }
   catch ( SALOME_Exception& S_ex ) {
     INFOS( "Compute(): catch exception "<< S_ex.what() );