- SALOME_NamingService NS(getSALOMERuntime()->getOrb());
- CORBA::Object_var obj=NS.Resolve("/Study");
- if(CORBA::is_nil(obj))
- {
- _errorDetails="Execution problem: no naming service";
- throw Exception(_errorDetails);
- }
-
- SALOMEDS::Study_var myStudy = SALOMEDS::Study::_narrow(obj);
- if(CORBA::is_nil(myStudy))
- {
- _errorDetails="Execution problem: no study";
- throw Exception(_errorDetails);
- }