KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: What is 4D's minimum recommended stack size?
PRODUCT: 4D | VERSION: 11.4 | PLATFORM: Mac & Win
Published On: July 23, 2009
Your current browser may not allow you to download the asset. We recommend Mozilla Firefox or Google Chrome.
Log In

Although it is impossible to "recommend" a stack size because the true size should depend on the code that is being run, it is possible to find the default stack size used by 4D. You can do this by allowing 4D to create a process for you. For example run a very simple method (such as the one below) by clicking the the green play button and selecting "Run new process" in the design environment.

Here is a simple sample method:

` Begin
TRACE
` End


Once you are in the debug window simply view the Stack Size under the Information heading. Some sample sizes found using this technique include:

Windows Vista:549 Kb
Windows XP:549 Kb
Mac OS 10.4.11:892 Kb
Mac OS 10.5.7:892 Kb

Commented by Timothy Penner on July 23, 2009 at 4:35 PM
This tip is about the Default stack size; to find the smallest stack size that 4D will allow, please see the following:
http://kb.4d.com/search/assetid=75843