X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FAddComponent%2FAddComponent_CheckOfUndefined.cxx;fp=src%2FAddComponent%2FAddComponent_CheckOfUndefined.cxx;h=b44c8032c2d942a702c4b9ee4e094de6f405b546;hb=b8e900f4e01fcc2a13d159836e22abfd9a2b1010;hp=79af8996c7f21b255cbe406240e3926750963417;hpb=0c3837bbc310a513ee2de852dde234177cc5a92c;p=samples%2Fcomponent.git diff --git a/src/AddComponent/AddComponent_CheckOfUndefined.cxx b/src/AddComponent/AddComponent_CheckOfUndefined.cxx index 79af899..b44c803 100644 --- a/src/AddComponent/AddComponent_CheckOfUndefined.cxx +++ b/src/AddComponent/AddComponent_CheckOfUndefined.cxx @@ -38,8 +38,6 @@ #endif #include "SALOME_Container_i.hxx" #include "utilities.h" -#include "Utils_ORB_INIT.hxx" -#include "Utils_SINGLETON.hxx" #include "SALOMETraceCollector.hxx" #include "OpUtil.hxx" @@ -83,9 +81,7 @@ int main(int argc, char* argv[]) // Initialise the ORB. //SRN: BugID: IPAL9541, it's necessary to set a size of one message to be at least 100Mb //CORBA::ORB_var orb = CORBA::ORB_init( argc , argv ) ; - ORB_INIT &init = *SINGLETON_::Instance() ; - ASSERT(SINGLETON_::IsAlreadyExisting()); - CORBA::ORB_var orb = init(0 , 0 ) ; + CORBA::ORB_var orb = KERNEL::GetRefToORB(); //SALOMETraceCollector *myThreadTrace = SALOMETraceCollector::instance(orb); INFOS_COMPILATION;