Error getting tags :
error 404Error getting tags :
error 404 recursionLimit | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
recursionLimit
Basics
Expander triangle
Type
Property
Syntax

set the recursionLimit to stackSizeInBytes

See Also
    Introduced
    2.0
    Environment
    Desktop,Server,Web
    Platform Support
    MacOS,Mac OS X,Windows,Linux
    Security
    None required
    Summary
    Specifies how many levels deep a recursive function is allowed to go.
    Examples

    set the recursionLimit to 20

    Additional Comments
    Expander triangle

    Use the recursionLimit property to quickly find possible recursion bugs or to extend the ability to use deeply recursive routines.

    Value:

    The recursionLimit is a positive integer.

    By default, the recursionLimit property is set to 400000.

    Comments:

    The stackSizeInBytes specifies the CPU call stack size. ("Stack" in this sense has nothing to do with Revolution stack objects; it refers to a type of data structure used by the processor.)

    The relationship between the recursionLimit and the number of levels of nesting permitted for a recursive call depends on a number of factors, including the processor type and the number of parameters passed during each function call. This means that the same recursionLimit value may allow a different maximum level of nesting, depending on the platform.

    Recursion may be used deliberately, especially in processing large data sets. To allow deeper levels of recursion than usual, increase the recursionLimit.

    Recursion may also occur accidentally. In this case, the recursion is usually infinite--that is, the function will keep recursing until it reaches the limit and causes an execution error. To track down such problems more quickly, reduce the recursionLimit. The lower the limit, the more quickly a buggy routine will cause an execution error.

    User Comments
    Expander triangle