From: eap Date: Wed, 6 May 2009 13:17:33 +0000 (+0000) Subject: 0020340: EDF 1022 SMESH : Crash with FindNodeClosestTo in a second new study X-Git-Tag: V5_1_2rc1~45 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=fd97cbec7c043d23576387dc2459c0b12fe33002;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 b1cdde266..5ddf9a515 100644 --- a/src/SMESH/SMESH_Mesh.cxx +++ b/src/SMESH/SMESH_Mesh.cxx @@ -110,6 +110,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++) {