C++ vs2010 increase stack size

cvisual studio 2010

I'm using vs2010 c++ to process images.

My image is an array of 1920 by 1200.

I can't even declare :

unsigned short frame [1920*1200];

Due to stack overflow.

How can I increase stack size ?

Best Answer

In Visual Studio, you can increase the stack size this way

Properties -> Configuration Properties -> Linker -> System -> Stack Reserve Size

Related Topic