]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
NPAL16631: EDF281: Crash on update mesh if computation failed because of memory lack.
authorjfa <jfa@opencascade.com>
Thu, 9 Aug 2007 10:18:19 +0000 (10:18 +0000)
committerjfa <jfa@opencascade.com>
Thu, 9 Aug 2007 10:18:19 +0000 (10:18 +0000)
src/SMESHGUI/SMESHGUI_ComputeDlg.cxx

index 3a9d29b3df7a4351539c684bbef58c7829732d5b..7ac3ba8a1d7760b3d24f88a3a3b3f9db2618768d 100644 (file)
@@ -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;
+          }
         }
       }
     }