]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
PR: just in case we try to find or start more than 10**8 parallel containers!
authorprascle <prascle>
Thu, 1 Dec 2005 08:41:01 +0000 (08:41 +0000)
committerprascle <prascle>
Thu, 1 Dec 2005 08:41:01 +0000 (08:41 +0000)
src/Container/SALOME_ContainerManager.cxx
src/MPIContainer/MPIContainer_i.cxx
src/ResourcesManager/SALOME_ResourcesManager.cxx

index 0e5e2cde88230ee0543cb241775727dfbeadb677..7e19bed50d3afc2705a5e4d560bd0366104d05a8 100644 (file)
@@ -121,7 +121,7 @@ FindOrStartContainer(const Engines::MachineParameters& params,
 {
   long id;
   string containerNameInNS;
-  char idc[sizeof(long)+1];
+  char idc[3*sizeof(long)];
 
   Engines::Container_ptr ret = FindContainer(params,possibleComputers);
   if(!CORBA::is_nil(ret))
index 8b7309d8449d4dbdd2bfbaaaa5207ea23f4bc70f..872c32d95b7cde771318ec21f64606b88ba051de 100644 (file)
@@ -47,7 +47,7 @@ Engines_MPIContainer_i::Engines_MPIContainer_i(int nbproc, int numproc,
 {
   long id=0;
   string IdContainerinNS;
-  char idc[sizeof(long)+1];
+  char idc[3*sizeof(long)];
 
   MESSAGE("[" << numproc << "] activate object");
   _id = _poa->activate_object(this);
index 8a92adefc65a25329b332d0f27ed027c4de6236d..3e4ffc748bbd996a8c0f41d5c9b94952c49323d4 100644 (file)
@@ -361,7 +361,7 @@ SALOME_ResourcesManager::BuildCommandToLaunchRemoteContainer
 {
   string command;
   int nbproc;
-  char idc[sizeof(long)+1];
+  char idc[3*sizeof(long)];
          
   if ( ! _isAppliSalomeDefined )
     command = BuildTempFileToLaunchRemoteContainer(machine, params);
@@ -466,7 +466,7 @@ SALOME_ResourcesManager::BuildCommandToLaunchLocalContainer
   _TmpFileName = "";
   string command;
   int nbproc = 0;
-  char idc[sizeof(long)+1];
+  char idc[3*sizeof(long)];
 
   if (params.isMPI)
     {