]> SALOME platform Git repositories - modules/yacs.git/commitdiff
Salome HOME
debug salome test: bad initialisation of static _poa of SALOMEDS_Study_i
authorPaul RASCLE <paul.rascle@edf.fr>
Wed, 27 Jun 2018 14:52:27 +0000 (16:52 +0200)
committerPaul RASCLE <paul.rascle@edf.fr>
Wed, 27 Jun 2018 14:52:27 +0000 (16:52 +0200)
src/SALOMEDS/SALOMEDS.cxx
src/SALOMEDS/SALOMEDS_Server.cxx

index b6fdf918b64c9ace47c92c61d044749ab10a8fd9..1ed2cfc9fdb5dfad52dbf10f60f6f4c88b1122cf 100644 (file)
@@ -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.
index 7de665e28032a1f50b01016edc4bb36a38feddce..f548494f5c9b3753b828f6f16e9609a57ec567e8 100644 (file)
@@ -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");