From 6ea3f4ae3c9448b80df44b5d1dd84d9333bcb8e9 Mon Sep 17 00:00:00 2001 From: Paul RASCLE Date: Wed, 27 Jun 2018 16:52:27 +0200 Subject: [PATCH] debug salome test: bad initialisation of static _poa of SALOMEDS_Study_i --- src/SALOMEDS/SALOMEDS.cxx | 2 +- src/SALOMEDS/SALOMEDS_Server.cxx | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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"); -- 2.39.2