how to change stack size for a C# program?

Posted by carter-boater on Stack Overflow See other posts from Stack Overflow or by carter-boater
Published on 2010-03-31T22:31:06Z Indexed on 2010/03/31 22:33 UTC
Read the original article Hit count: 636

Filed under:
|
|

Dear friends,

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 some where in my C# program?

P.S. I am using 32-bit winXP and 64bit win7.

Thanks a lot

© Stack Overflow or respective owner

Related posts about stackoverflow

Related posts about stack