-using namespace std;
-//=============================================================================
-// File : RegistryConnexion.cxx
-// Created : Mon Nov 5 17:26:23 CET 2001
-// Author : Pascale NOYRET - Antoine YESSAYAN, EDF
-// Project : SALOME
-// Copyright : EDF 2001
-// $Header$
-//=============================================================================
+// SALOME Registry : Registry server implementation
+//
+// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+//
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+//
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+//
+//
+//
+// File : RegistryConnexion.cxx
+// Author : Pascale NOYRET - Antoine YESSAYAN, EDF
+// Module : SALOME
+// $Header$
-using namespace std;
# include "Utils_ORB_INIT.hxx"
# include "RegistryConnexion.hxx"
# include "SALOME_NamingService.hxx"
{
# include <stdio.h>
}
+using namespace std;
Registry::Components_var Connexion( int argc , char **argv , const char *ptrSessionName ) throw( CommException )
_VarComponents->remove( _Id ) ;
}
_Id = 0 ;
+#ifndef WNT
delete [] _Ior;
+#else
+ delete [] (char*) _Ior;
+#endif
_Ior = 0;
_SessionName = "";
_Name = "" ;
infos.pid = lesInfos.pid() ;
infos.machine = CORBA::string_dup( lesInfos.host_char() ) ;
infos.adip = CORBA::string_dup( lesInfos.adip() ) ;
- infos.uid = lesInfos.uid() ;
+ infos.uid = (long)lesInfos.uid() ;
infos.pwname = CORBA::string_dup( lesInfos.pwname() ) ;
infos.tc_start = lesInfos.start() ;
infos.tc_hello = 0 ;