]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
MPV
authormpv <mpv@opencascade.com>
Wed, 26 Jan 2005 11:17:49 +0000 (11:17 +0000)
committermpv <mpv@opencascade.com>
Wed, 26 Jan 2005 11:17:49 +0000 (11:17 +0000)
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

index 4b110ce6b7d0db3032872d5257d618e4091fe2d0..466fa70d6e92e6f17cfd4a879c339dc661fee479 100644 (file)
@@ -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);