Pref::maxMem -- memory limit for
calculation
IntroductionPref::maxMem(kbyte) sets a memory limit
for calculations in kilobyte.
Call(s)Pref::maxMem( <kbyte>)
Parameterskbyte |
- | integer in kilobyte, or NIL |
Returnsthe last defined memory limit
Related
FunctionsPref::maxTime,
bytes, MAXDEPTH
Details0 effects no limitation.Pref::maxMem without arguments returns the
current value. The argument NIL resets the default value,
which is 0.
Example
1The memory usage will be limited to a value above the
current memory usage, displayed by bytes.
>> bytes()
507780, 717300, 2147483647
>> Pref::maxMem(1): [i] $ i = 1 .. 1000000:
Error: Watchdog reset [watchdog-memory]