This is documentation for Mathematica 6, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

MemoryConstrained

Updated In 6 Graphic
MemoryConstrained[expr, b]
evaluates expr, stopping if more than b bytes of memory are requested.
MemoryConstrained[expr, b, failexpr]
returns failexpr if the memory constraint is not met.
  • MemoryConstrained generates an interrupt to stop the evaluation of expr if the amount of additional memory requested during the evaluation of expr exceeds b bytes.
New in 1 | Last modified in 6