From: Anthony Geay Date: Thu, 30 Sep 2021 14:32:01 +0000 (+0200) Subject: Quick and dirty fix X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=70361661e2360fa619ce365b22c7a5a18f3b365c;p=modules%2Fkernel.git Quick and dirty fix --- diff --git a/src/SALOMESDS/SALOMESDS_DataServerManager.cxx b/src/SALOMESDS/SALOMESDS_DataServerManager.cxx index 18b0f4be4..57da81963 100644 --- a/src/SALOMESDS/SALOMESDS_DataServerManager.cxx +++ b/src/SALOMESDS/SALOMESDS_DataServerManager.cxx @@ -66,7 +66,7 @@ DataServerManager::DataServerManager(const SALOME_CPythonHelper *pyHelper, CORBA PortableServer::ThreadPolicy_var threadPol(poa->create_thread_policy(PortableServer::SINGLE_THREAD_MODEL)); policies[0]=PortableServer::ThreadPolicy::_duplicate(threadPol); PortableServer::POA_var safePoa = poa->create_POA("SingleThPOA4SDS",pman,policies); - _poa= poa; + _poa = poa; threadPol->destroy(); // activate this to be ready to be usable from NS. PortableServer::ObjectId_var id(_poa->activate_object(this)); @@ -75,7 +75,7 @@ DataServerManager::DataServerManager(const SALOME_CPythonHelper *pyHelper, CORBA // publish Data server manager in NS _ns->Register(obj2,NAME_IN_NS); // the default DataScopeServer object is the only one hosted by the current process - dftScope->setPOA(safePoa); + dftScope->setPOA(_poa); obj=dftScope->activate(); SALOME::DataScopeServer_var dftScopePtr(SALOME::DataScopeServer::_narrow(obj)); dftScope->registerInNS(dftScopePtr);// agy : Very important ! invoke this method BEFORE activation ! Because this method initializes Python !