Salome HOME
A service to generate artificialy SIGSEGV to test robustness of high level layers
[modules/kernel.git] / src / KernelHelpers / SALOME_KernelORB.cxx
index ed8b9da78c65b4f47e6143b6f3d634733976da34..255cffcdcc1ef4ecc0fb3e61a9c43b0082a8a907 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2021  CEA/DEN, EDF R&D
+// Copyright (C) 2021-2022  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -18,6 +18,7 @@
 //
 
 #include "SALOME_KernelORB.hxx"
+#include "OpUtil.hxx"
 
 namespace KERNEL {
   /**
@@ -28,8 +29,7 @@ namespace KERNEL {
   CORBA::ORB_ptr getORB() {
     static CORBA::ORB_ptr orb;
     if(CORBA::is_nil(orb)){
-      int argc=0;
-      orb = CORBA::ORB_init(argc,0);
+      orb = KERNEL::GetRefToORB();
     }
     return orb;
   }