From: prascle Date: Thu, 1 Dec 2005 08:41:01 +0000 (+0000) Subject: PR: just in case we try to find or start more than 10**8 parallel containers! X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5bf2ec21424edff06533be89255c89058b719bda;p=modules%2Fkernel.git PR: just in case we try to find or start more than 10**8 parallel containers! --- diff --git a/src/Container/SALOME_ContainerManager.cxx b/src/Container/SALOME_ContainerManager.cxx index 0e5e2cde8..7e19bed50 100644 --- a/src/Container/SALOME_ContainerManager.cxx +++ b/src/Container/SALOME_ContainerManager.cxx @@ -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)) diff --git a/src/MPIContainer/MPIContainer_i.cxx b/src/MPIContainer/MPIContainer_i.cxx index 8b7309d84..872c32d95 100644 --- a/src/MPIContainer/MPIContainer_i.cxx +++ b/src/MPIContainer/MPIContainer_i.cxx @@ -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); diff --git a/src/ResourcesManager/SALOME_ResourcesManager.cxx b/src/ResourcesManager/SALOME_ResourcesManager.cxx index 8a92adefc..3e4ffc748 100644 --- a/src/ResourcesManager/SALOME_ResourcesManager.cxx +++ b/src/ResourcesManager/SALOME_ResourcesManager.cxx @@ -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) {