Previous Page Next Page Contents

Pref::maxMem -- memory limit for calculation

Introduction

Pref::maxMem(kbyte) sets a memory limit for calculations in kilobyte.

Call(s)

Pref::maxMem( <kbyte>)

Parameters

kbyte - integer in kilobyte, or NIL

Returns

the last defined memory limit

Related Functions

Pref::maxTime, bytes, MAXDEPTH

Details

Example 1

The 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]

Changes




Do you have questions or comments?


Copyright © SciFace Software GmbH & Co. KG 2000