Ami DATA
Ami DATA

Reputation: 541

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 ?

Upvotes: 5

Views: 8494

Answers (1)

poitroae
poitroae

Reputation: 21377

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

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

Upvotes: 8

Related Questions