The question says it all. Attempting to increase the stack size in the linker options generates the error :
Maximum Stack Size must be an integer between 65536 and 16777216.
Is this 16MB limit a fundamental limitation of the Delphi compiler or is this an arbitrary limit imposed by the IDE? Is there another way to increase this value?
Note (in anticipation of the comments...) :
- The need for a larger stack is due to enormous static array types used as local variables
- I understand that the need to do this is symptomatic of terrible design
- This is a large legacy application whose design and maintenance I am not responsible for.
- Refactoring to dynamic arrays works, but incurs a 50% performance penalty.
- Other refactorings are possible - probably weeks of work. This will likely end up as a side-project.
- In the meantime, functionality is needed now and a larger stack would be an easy fix.
- Yes, I really, really know this a bad, bad thing to do.