From: san Date: Thu, 3 Feb 2005 07:01:28 +0000 (+0000) Subject: PAL7962 X-Git-Tag: V2_2_0b4~20 X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=commitdiff_plain;h=3c6d43b5e5e863a1c56844b71278b44774df795f;ds=sidebyside PAL7962 --- diff --git a/src/SMESH_I/SMESH_Mesh_i.cxx b/src/SMESH_I/SMESH_Mesh_i.cxx index 2f8c2c306..d0da172ba 100644 --- a/src/SMESH_I/SMESH_Mesh_i.cxx +++ b/src/SMESH_I/SMESH_Mesh_i.cxx @@ -262,6 +262,12 @@ int SMESH_Mesh_i::importMEDFile( const char* theFileName, const char* theMeshNam list aGroupIds = _impl->GetGroupIds(); for ( list::iterator it = aGroupIds.begin(); it != aGroupIds.end(); it++ ) { SMESH_Group_i* aGroupImpl = new SMESH_Group_i( SMESH_Gen_i::GetPOA(), this, *it ); + + // PAL7962: san -- To ensure correct mapping of servant and correct reference counting in GenericObj_i + SMESH_Gen_i::GetPOA()->activate_object( aGroupImpl ); + aGroupImpl->Register(); + // PAL7962: san -- To ensure correct mapping of servant and correct reference counting in GenericObj_i + SMESH::SMESH_Group_var aGroup = SMESH::SMESH_Group::_narrow( aGroupImpl->_this() ); _mapGroups[*it] = SMESH::SMESH_Group::_duplicate( aGroup );