From: eap Date: Wed, 6 May 2009 13:21:34 +0000 (+0000) Subject: 0020340: EDF 1022 SMESH : Crash with FindNodeClosestTo in a second new study X-Git-Tag: V4_1_0_maintainance_FINAL~97 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=36bfc7ca0ca803fdeac7ddcc4dce98c562d18a23;p=modules%2Fsmesh.git 0020340: EDF 1022 SMESH : Crash with FindNodeClosestTo in a second new study notify node searcher on mesh destruction --- diff --git a/src/SMESH/SMESH_Mesh.cxx b/src/SMESH/SMESH_Mesh.cxx index b751f3ae8..00defb418 100644 --- a/src/SMESH/SMESH_Mesh.cxx +++ b/src/SMESH/SMESH_Mesh.cxx @@ -23,7 +23,6 @@ // File : SMESH_Mesh.cxx // Author : Paul RASCLE, EDF // Module : SMESH -// $Header$ // #include "SMESH_Mesh.hxx" #include "SMESH_subMesh.hxx" @@ -110,6 +109,11 @@ SMESH_Mesh::~SMESH_Mesh() { INFOS("SMESH_Mesh::~SMESH_Mesh"); + // issue 0020340: EDF 1022 SMESH : Crash with FindNodeClosestTo in a second new study + // Notify event listeners at least that something happens + if ( SMESH_subMesh * sm = GetSubMeshContaining(1)) + sm->ComputeStateEngine( SMESH_subMesh::MESH_ENTITY_REMOVED ); + // delete groups std::map < int, SMESH_Group * >::iterator itg; for (itg = _mapGroup.begin(); itg != _mapGroup.end(); itg++) {