Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

c++ vs2010 increase stack size

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 ?

like image 324
Ami DATA Avatar asked Feb 12 '13 11:02

Ami DATA


Video Answer


1 Answers

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

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

like image 174
poitroae Avatar answered Sep 30 '22 02:09

poitroae