Thread.StackSize

From Xojo Documentation

Property (As Integer )
aThread.StackSize = newIntegerValue
or
IntegerValue = aThread.StackSize

Supported for all project types and targets.

The size of the stack, in bytes.

Notes

The StackSize can only be set when the thread is not running. The default stack size is 512KB on macOS and Linux and 1MB on Windows. A StackSize of zero indicates the default is used.

There is generally little reason to change this. Each stack frame only need to contain information about the parameters, local variables and return address for a method call. This does not include memory needed for objects. It would take a significant amount of local variables or parameters with method calls that are 100s of levels deep in order to exhaust the stack space.

Example

Thread1.StackSize = 96000