Salome HOME
DCQ:prepare 2.0.0
[modules/smesh.git] / src / SMESH_I / SMESH_Hypothesis_i.cxx
index 87c16ee4e12632f9d244c58df93a0ab917667a16..d5cdce9fbc609496ddb130f93bfb02d8e1de9e51 100644 (file)
@@ -43,11 +43,27 @@ using namespace std;
 SMESH_Hypothesis_i::SMESH_Hypothesis_i( PortableServer::POA_ptr thePOA )
      : SALOME::GenericObj_i( thePOA )
 {
-  MESSAGE( "SMESH_Hypothesis_i::SMESH_Hypothesis_i" );
+  MESSAGE( "SMESH_Hypothesis_i::SMESH_Hypothesis_i / Début" );
   myBaseImpl = 0;
-  thePOA->activate_object( this );
+  // _CS_gbo This instruction fails
+  // thePOA->activate_object( this );
+  // _CS_gbo I keep the POA reference to activate the object in the future.
+  myPOA = thePOA;
+  
+  MESSAGE( "SMESH_Hypothesis_i::SMESH_Hypothesis_i / Fin" );
 };
 
+//=============================================================================
+/*!
+ *  SMESH_Hypothesis_i::Activate()
+ *
+ *  Activation of the object
+ */
+//=============================================================================
+void SMESH_Hypothesis_i::Activate() {
+  myPOA->activate_object( this );
+}
+
 //=============================================================================
 /*!
  *  SMESH_Hypothesis_i::~SMESH_Hypothesis_i