From 8d053705ea565f50140b68c7b956ee03ebf64949 Mon Sep 17 00:00:00 2001 From: eap Date: Mon, 10 Sep 2007 14:22:22 +0000 Subject: [PATCH] PAL16774,PAL16631(SALOME crash after a mesh computation that failed because of lack of memory) Precise error message --- src/SMESH/SMESH_subMesh.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SMESH/SMESH_subMesh.cxx b/src/SMESH/SMESH_subMesh.cxx index 1bac302b2..d490e6bbe 100644 --- a/src/SMESH/SMESH_subMesh.cxx +++ b/src/SMESH/SMESH_subMesh.cxx @@ -1335,7 +1335,7 @@ bool SMESH_subMesh::ComputeStateEngine(int event) _computeError = algo->GetComputeError(); } catch ( std::bad_alloc& exc ) { - printf("std::bad_alloc\n"); + printf("std::bad_alloc thrown inside algo->Compute()\n"); if ( _computeError ) { _computeError->myName = COMPERR_MEMORY_PB; //_computeError->myComment = exc.what(); @@ -1344,7 +1344,7 @@ bool SMESH_subMesh::ComputeStateEngine(int event) throw exc; } catch ( Standard_OutOfMemory& exc ) { - printf("Standard_OutOfMemory\n"); + printf("Standard_OutOfMemory thrown inside algo->Compute()\n"); if ( _computeError ) { _computeError->myName = COMPERR_MEMORY_PB; //_computeError->myComment = exc.what(); -- 2.39.2