-// Copyright (C) 2007-2020 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2024 CEA, EDF, OPEN CASCADE
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
//
#include "Salome_file_i.hxx"
+#include "ArgvKeeper.hxx"
+#include "OpUtil.hxx"
#include <iostream>
#include <fstream>
#include <sstream>
print_state(state);
// We start CORBA ...
- CORBA::ORB_ptr orb = CORBA::ORB_init(argc , argv);
+ SetArgcArgv(argc, argv);
+ CORBA::ORB_ptr orb = KERNEL::GetRefToORB();
obj = orb->resolve_initial_references("RootPOA");
root_poa = PortableServer::POA::_narrow(obj);
pman = root_poa->the_POAManager();