I created a VC++ console application (HelloWorld). In that I created one byte array with size 1316779. It's working fine when building the application. Anyway debugging the application it's giving
Unhandled exception at 0x00969167 in HelloWorld.exe: 0xC00000FD: Stack overflow.
But when I changed size to 1010000 then it worked fine.
My requirement is to create a byte array size of 1316779. i.e. byte myArray[1316779];
I am working under XP operating system with Pentium processor and having 2GB RAM.