From: mpv Date: Wed, 26 Jan 2005 11:17:49 +0000 (+0000) Subject: MPV X-Git-Tag: V2_2_0b1~11 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5cf961dee16634fcf4661fe17e3cca8b31b4ca87;p=modules%2Fkernel.git MPV Debug saving study: SALOMEDS creates LifeCycleCORBA with not root ("/Study") current directory of naming context. Set it to "/" in LifeCycleCORBA constructor before "ContainerManager" usage. --- diff --git a/src/LifeCycleCORBA/SALOME_LifeCycleCORBA.cxx b/src/LifeCycleCORBA/SALOME_LifeCycleCORBA.cxx index 4b110ce6b..466fa70d6 100644 --- a/src/LifeCycleCORBA/SALOME_LifeCycleCORBA.cxx +++ b/src/LifeCycleCORBA/SALOME_LifeCycleCORBA.cxx @@ -47,6 +47,7 @@ SALOME_LifeCycleCORBA::SALOME_LifeCycleCORBA(SALOME_NamingService *ns) { _NS = ns; //add try catch + _NS->Change_Directory("/"); // mpv 250105: current directory may be not root (in SALOMEDS for an example) CORBA::Object_var obj=_NS->Resolve(SALOME_ContainerManager::_ContainerManagerNameInNS); ASSERT( !CORBA::is_nil(obj)); _ContManager=Engines::ContainerManager::_narrow(obj);