X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSMESH_I%2FSMESH_Component_Generator.cxx;h=0a1a1d9c210b6b6f781a202d0e22512cb4bec7f5;hb=6b5dcfe0005f2a725fd721fe10abd1c3259e25ad;hp=a1819c5e1be469223061c286349c96e472d74352;hpb=a463e4643121ceea8a13c2fad631e0ef0ac8a824;p=modules%2Fsmesh.git diff --git a/src/SMESH_I/SMESH_Component_Generator.cxx b/src/SMESH_I/SMESH_Component_Generator.cxx index a1819c5e1..0a1a1d9c2 100644 --- a/src/SMESH_I/SMESH_Component_Generator.cxx +++ b/src/SMESH_I/SMESH_Component_Generator.cxx @@ -23,6 +23,8 @@ #include "SALOME_Container_i.hxx" #include "SALOME_KernelServices.hxx" +#include "SALOME_Fake_NamingService.hxx" + #include static Engines::EngineComponent_var _unique_compo; @@ -41,11 +43,13 @@ Engines::EngineComponent_var RetrieveSMESHInstance() PortableServer::POAManager_var pman = poa->the_POAManager(); CORBA::PolicyList policies; policies.length(0); - Engines_Container_i *cont(KERNEL::getContainerSA()); + auto *cont(KERNEL::getContainerSA()); PortableServer::ObjectId *conId(cont->getCORBAId()); // pman->activate(); // + SMESH_Gen_i::SetNS(new SALOME_Fake_NamingService); + // SMESH_Gen_No_Session_i *servant = new SMESH_Gen_No_Session_i(orb, poa, conId, "SMESH_inst_2", "SMESH"); PortableServer::ObjectId *zeId = servant->getId(); CORBA::Object_var zeRef = poa->id_to_reference(*zeId);