]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
connection to a corba naming service on a server
authorBernard Secher <bernard.secher@cea.fr>
Thu, 22 Nov 2018 13:35:13 +0000 (14:35 +0100)
committerBernard Secher <bernard.secher@cea.fr>
Thu, 28 Mar 2019 13:39:41 +0000 (14:39 +0100)
src/Session/SALOME_Session_Server.cxx

index a8e0b7e8bcc704798987234c8d9ff9a43b3c4ff8..c82ccc3c64c27a823e4a41aba941823ba30df3c1 100644 (file)
@@ -460,6 +460,8 @@ int main( int argc, char **argv )
     ORB_INIT &init = *SINGLETON_<ORB_INIT>::Instance();
     ASSERT( SINGLETON_<ORB_INIT>::IsAlreadyExisting() );
     int orbArgc = 1;
+    if( std::string(argv[1]).find("-ORBInitRef") != std::string::npos )
+      orbArgc = 3;
     orb = init( orbArgc, argv );
 
     CORBA::Object_var obj = orb->resolve_initial_references( "RootPOA" );