KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: "Stack is Full" Error
PRODUCT: 4D | VERSION: 17 | PLATFORM: Mac & Win
Published On: November 21, 2019

The required stack size varies for each situation. The needed amount is different based on the task, the operating system (Mac/Windows), the version of 4D, and the architecture. For example, the needed stack size in 64-bit versions is much larger than in 32-bit versions of 4D. Therefore, the required stack size will be changed when converting a database to 64-bit or openning it across environments.

The change in needed stack size can cause the "Stack is Full" error message to appear in a database that has been moved or upgraded.

To avoid this error, it is recommended to use the automatic stack size (0) when creating a process with the command New process. This allows 4D to determine the best stack size depending on the environment. With the automatic stack size setting, the best stack size will be chosen accordingly when moving the database between different environments. Therefore it is recommended to use this setting for future sustainability.