From: jfa Date: Thu, 9 Aug 2007 10:18:19 +0000 (+0000) Subject: NPAL16631: EDF281: Crash on update mesh if computation failed because of memory lack. X-Git-Tag: T32x_16Aug2007_16h00m~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=dc537c20a16de8e7b5d1ed271122b195cfbd6e0d;p=modules%2Fsmesh.git NPAL16631: EDF281: Crash on update mesh if computation failed because of memory lack. --- diff --git a/src/SMESHGUI/SMESHGUI_ComputeDlg.cxx b/src/SMESHGUI/SMESHGUI_ComputeDlg.cxx index 3a9d29b3d..7ac3ba8a1 100644 --- a/src/SMESHGUI/SMESHGUI_ComputeDlg.cxx +++ b/src/SMESHGUI/SMESHGUI_ComputeDlg.cxx @@ -839,14 +839,14 @@ void SMESHGUI_ComputeOp::startOperation() memoryLack = true; } - if ( !memoryLack ) + // NPAL16631: if ( !memoryLack ) { SMESH::ModifiedMesh(aMeshSObj, !computeFailed, aMesh->NbNodes() == 0); update( UF_ObjBrowser | UF_Model ); // SHOW MESH - try { - if ( getSMESHGUI()->automaticUpdate() ) { + if ( getSMESHGUI()->automaticUpdate() ) { + try { SVTK_ViewWindow* aVTKView = SMESH::GetViewWindow(getSMESHGUI(), true); if (aVTKView) { int anId = study()->id(); @@ -866,9 +866,9 @@ void SMESHGUI_ComputeOp::startOperation() } } } - } - catch (...) { - memoryLack = true; + catch (...) { + memoryLack = true; + } } } }