From: skl Date: Wed, 11 Oct 2006 11:10:03 +0000 (+0000) Subject: Corrected for PAL13400. X-Git-Tag: V3_2_3pre1~20 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=846ed72204e7a8481e6c44ff546d53353c016886;p=modules%2Fsmesh.git Corrected for PAL13400. --- diff --git a/src/SMESH_I/SMESH_Gen_i.cxx b/src/SMESH_I/SMESH_Gen_i.cxx index d0eeb8bc0..487258b3b 100644 --- a/src/SMESH_I/SMESH_Gen_i.cxx +++ b/src/SMESH_I/SMESH_Gen_i.cxx @@ -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() ); }