# FB5.5 Setting Delphi's Stack Size using a Variable

**URL:** <https://www.finalbuilder.com/forums/t/fb5-5-setting-delphis-stack-size-using-a-variable/1414>\
**Category:** Discussion\
**Created:** [December 23, 2009, 4:45am UTC](https://www.finalbuilder.com/forums/t/fb5-5-setting-delphis-stack-size-using-a-variable/1414 "2009-12-23T04:45:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![danielcomeau](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/d/ed655f/32.png) [@danielcomeau](https://www.finalbuilder.com/forums/u/danielcomeau)\
**Post date:** [December 23, 2009, 4:45am UTC](https://www.finalbuilder.com/forums/t/fb5-5-setting-delphis-stack-size-using-a-variable/1414/1 "2009-12-23T04:45:44Z")

</div>

I must be missing something . . . I am unable to set the Delphi 7 Compiler options for the stack size using a variable. I have defined a variable and will be reading its value from an INI file.&nbsp; The is the error message that I get:

Any ideas?

Daniel Comeau

![SettingStackSize.jpg](https://www.finalbuilder.com/forums/uploads/default/original/2X/d/d23ddedd85d21fd7d7d6ad4b9584e6ce744ed9c1.jpeg)

---

<div class="post-metadata">

**Author:** ![paulsamways](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/p/e8c25b/32.png) [@paulsamways](https://www.finalbuilder.com/forums/u/paulsamways)\
**Post date:** [December 23, 2009, 10:36am UTC](https://www.finalbuilder.com/forums/t/fb5-5-setting-delphis-stack-size-using-a-variable/1414/2 "2009-12-23T10:36:51Z")

</div>

Hi Daniel,   
  
 The stack size property can be set using the actions BeforeAction script event, the Javascript to set the property is:   
  
 Action.MinStackSize = AppDelphiMinStackSize;   
  
 Regards,   
 Paul.
