From 846ed72204e7a8481e6c44ff546d53353c016886 Mon Sep 17 00:00:00 2001 From: skl Date: Wed, 11 Oct 2006 11:10:03 +0000 Subject: [PATCH] Corrected for PAL13400. --- src/SMESH_I/SMESH_Gen_i.cxx | 4 ++++ 1 file changed, 4 insertions(+) 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() ); } -- 2.39.2