From: Paul RASCLE Date: Wed, 27 Jun 2018 14:52:27 +0000 (+0200) Subject: debug salome test: bad initialisation of static _poa of SALOMEDS_Study_i X-Git-Tag: SHAPER_V9_1_0RC1~11 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6ea3f4ae3c9448b80df44b5d1dd84d9333bcb8e9;p=modules%2Fkernel.git debug salome test: bad initialisation of static _poa of SALOMEDS_Study_i --- diff --git a/src/SALOMEDS/SALOMEDS.cxx b/src/SALOMEDS/SALOMEDS.cxx index b6fdf918b..1ed2cfc9f 100644 --- a/src/SALOMEDS/SALOMEDS.cxx +++ b/src/SALOMEDS/SALOMEDS.cxx @@ -124,7 +124,7 @@ extern "C" MESSAGE("CreateStudy: KERNELStudySingleThreadPOA: "<< poa); threadPol->destroy(); - SALOMEDS_Study_i::SetThePOA(poa); + SALOMEDS_Study_i::SetThePOA(poa); SALOMEDS_Study_i* aStudy_i = new SALOMEDS_Study_i(orb); // Activate the objects. This tells the POA that the objects are ready to accept requests. diff --git a/src/SALOMEDS/SALOMEDS_Server.cxx b/src/SALOMEDS/SALOMEDS_Server.cxx index 7de665e28..f548494f5 100644 --- a/src/SALOMEDS/SALOMEDS_Server.cxx +++ b/src/SALOMEDS/SALOMEDS_Server.cxx @@ -111,6 +111,7 @@ int main(int argc, char** argv) policies[1] = PortableServer::ImplicitActivationPolicy::_duplicate(implicitPol); poa = defaultPoa->create_POA("KERNELStandaloneStudySingleThreadPOA",pman,policies); threadPol->destroy(); + SALOMEDS_Study_i::SetThePOA(poa); if(!CORBA::is_nil(orb)) theObj = orb->resolve_initial_references("NameService");