Salome HOME
BUG: GHS3DPlugin: Fixed a bug in the max memory computation V7_2_1
authorrnc <rnc@opencascade.com>
Mon, 1 Jul 2013 17:10:33 +0000 (17:10 +0000)
committerrnc <rnc@opencascade.com>
Mon, 1 Jul 2013 17:10:33 +0000 (17:10 +0000)
commita8a3c359241474fdf2bf4a0e55833e6564b3c609
tree23fd75d3507c79f8da0b32fa0b9b99e7c79d13d8
parent3c3c7cdeb9ea95693ba655957800414d990f3b0f
BUG: GHS3DPlugin: Fixed a bug in the max memory computation

The default maximum memory was defined as a short integer which caused the maximum memory to be badly initialised on computers with big memory.
If the available memory was more than 32768 Mo (2**15 Mo) the max memory was cast from int to short and could be initialised with any value included a negative one. In this case a 20Mo default value was used by GHS3D
idl/GHS3DPlugin_Algorithm.idl
src/GHS3DPlugin/GHS3DPlugin_Hypothesis.cxx
src/GHS3DPlugin/GHS3DPlugin_Hypothesis.hxx
src/GHS3DPlugin/GHS3DPlugin_Hypothesis_i.cxx
src/GHS3DPlugin/GHS3DPlugin_Hypothesis_i.hxx