From d809bd4bfa3a24be44a58c4979419c36a8e4ebbf Mon Sep 17 00:00:00 2001 From: Anthony Geay Date: Wed, 13 Jan 2021 15:51:47 +0100 Subject: [PATCH] WIP --- src/SALOMEDS/SALOMEDS_Study_i.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/SALOMEDS/SALOMEDS_Study_i.cxx b/src/SALOMEDS/SALOMEDS_Study_i.cxx index 25ed605f0..2cc448448 100644 --- a/src/SALOMEDS/SALOMEDS_Study_i.cxx +++ b/src/SALOMEDS/SALOMEDS_Study_i.cxx @@ -64,7 +64,7 @@ UNEXPECT_CATCH(LockProtection, SALOMEDS::StudyBuilder::LockProtection) static SALOMEDS_Driver_i* GetDriver(const SALOMEDSImpl_SObject& theObject, CORBA::ORB_ptr orb); -static PortableServer::POA_ptr _poa; +static PortableServer::POA_ptr _poa; /** * Return a unique study obj but servant is embeded here. @@ -76,6 +76,9 @@ SALOMEDS::Study_ptr KERNEL::getStudyServantSA() if(CORBA::is_nil(aStudy)) { CORBA::ORB_ptr orb = KERNEL::getORB(); + CORBA::Object_var obj = orb->resolve_initial_references("RootPOA"); + PortableServer::POA_var poa = PortableServer::POA::_narrow(obj); + _poa = PortableServer::POA::_duplicate(poa); SALOMEDS_Study_i *servant = new SALOMEDS_Study_i(orb,SALOME::Session::_nil()); aStudy = servant->_this(); } -- 2.39.2