How to change stack size for a .NET program?
- by carter-boater
I have a program that does recursive calls for 2 billion times and the stack overflow. I make changes, and then it still need 40K resursive calls. So I need probably serveral MB stack memory. I heard the stack size is default to 1MB. I tried search online. Some one said to go properties -linker .........in visual studio, but I cannot find it.
Does anybody knows how to increase it? Also I am wondering if I can set it somewhere in my C# program?
P.S. I am using 32-bit winXP and 64bit win7.