From 7dbc79c51dcd1dce59ae05bc8766b2576a3c40ed Mon Sep 17 00:00:00 2001 From: san Date: Wed, 2 Feb 2005 11:09:27 +0000 Subject: [PATCH] PAL7962 --- src/SMESH_I/SMESH_Group_i.cxx | 14 ++++++++++---- src/SMESH_I/SMESH_Group_i.hxx | 6 ++---- src/SMESH_I/SMESH_Mesh_i.cxx | 6 ++++++ 3 files changed, 18 insertions(+), 8 deletions(-) diff --git a/src/SMESH_I/SMESH_Group_i.cxx b/src/SMESH_I/SMESH_Group_i.cxx index 11dbe143b..78ca52898 100644 --- a/src/SMESH_I/SMESH_Group_i.cxx +++ b/src/SMESH_I/SMESH_Group_i.cxx @@ -46,17 +46,23 @@ SMESH_GroupBase_i::SMESH_GroupBase_i( PortableServer::POA_ptr thePOA, SMESH_Mesh myMeshServant( theMeshServant ), myLocalID( theLocalID ) { - thePOA->activate_object( this ); + // PAL7962: san -- To ensure correct mapping of servant and correct reference counting in GenericObj_i, + // servant activation is performed by SMESH_Mesh_i::createGroup() + // thePOA->activate_object( this ); } SMESH_Group_i::SMESH_Group_i( PortableServer::POA_ptr thePOA, SMESH_Mesh_i* theMeshServant, const int theLocalID ) -: SMESH_GroupBase_i( thePOA, theMeshServant, theLocalID ) + : SALOME::GenericObj_i( thePOA ), + SMESH_GroupBase_i( thePOA, theMeshServant, theLocalID ) { + MESSAGE("SMESH_Group_i; this = "<