From: eap Date: Fri, 18 May 2007 09:05:27 +0000 (+0000) Subject: PAL14921 (memory limitation and Salome freeze) X-Git-Tag: T15881~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0c06ae1e8c133ee9ff768c886e162e0e1752bef6;p=plugins%2Fghs3dplugin.git PAL14921 (memory limitation and Salome freeze) - Unexpect aCatch(SalomeException); + // PAL14921. Enable catching std::bad_alloc and Standard_OutOfMemory outside + //Unexpect aCatch(SalomeException); --- diff --git a/src/GHS3DPlugin_GHS3D.cxx b/src/GHS3DPlugin_GHS3D.cxx index 45b5838..57c7983 100644 --- a/src/GHS3DPlugin_GHS3D.cxx +++ b/src/GHS3DPlugin_GHS3D.cxx @@ -496,7 +496,7 @@ bool GHS3DPlugin_GHS3D::Compute(SMESH_Mesh& theMesh, #endif if (!Ok) - return error(dfltErr(), SMESH_Comment("Can't write into ") << aTmpDir.ToCString()); + return error( SMESH_Comment("Can't write into ") << aTmpDir.ToCString()); map aSmdsToGhs3dIdMap; map aGhs3dIdToNodeMap; @@ -555,7 +555,7 @@ bool GHS3DPlugin_GHS3D::Compute(SMESH_Mesh& theMesh, } else { - Ok = error(dfltErr(), "Problem with launching ghs3d"); + Ok = error( "Problem with launching ghs3d"); } // --------------------- @@ -566,7 +566,7 @@ bool GHS3DPlugin_GHS3D::Compute(SMESH_Mesh& theMesh, OSD_File( aLogFileName ).Remove(); } else if ( OSD_File( aLogFileName ).Size() > 0 ) { - Ok = error(dfltErr(), SMESH_Comment("See ")<< aLogFileName.ToCString() ); + Ok = error( SMESH_Comment("See ")<< aLogFileName.ToCString() ); } else { OSD_File( aLogFileName ).Remove();