From 5cf961dee16634fcf4661fe17e3cca8b31b4ca87 Mon Sep 17 00:00:00 2001 From: mpv Date: Wed, 26 Jan 2005 11:17:49 +0000 Subject: [PATCH] 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. --- src/LifeCycleCORBA/SALOME_LifeCycleCORBA.cxx | 1 + 1 file changed, 1 insertion(+) 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); -- 2.39.2