Stack overflow

This run-time error is reported when Ultra Fractal runs out of stack space while running a calculation. The stack is a reserved memory area that Ultra Fractal uses to keep track of what it is doing. Each function call allocates some stack space to store local variables and a return address. Usually, a stack overflow is caused by unbounded recursion (i.e. a function that continues to call itself), or recursion in combination with large local variables.

To fix this error, first check if you are using recursion without an exit condition (an example of this is below). Otherwise, if you need large local variables such as arrays, consider stroing those in a class instead, which allocate its memory from main memory instead of from the stack.

Example of unlimited recursion:

func test()
  ; Recursive call without exit condition; this will
  ; eventually cause a stack overflow error.
  test()
endfunc

test()

See Also
Out of memory
Storage exceeds available memory
Objects
Errors