How to increase stack size permanently on Windows 7?

Solution 1:

changing the stacksize for a program can be changed by using the editbin command (part of visual studio):

$ editbin /STACK:reserve[,commit] program.exe

See https://docs.microsoft.com/en-us/cpp/build/reference/stack