#include \"stdafx.h\" int _tmain(int argc, _TCHAR* argv[]) { float x[1000][1000]; return 0; }
I get \" First-chance exception at 0x013416
Just declare your array static:
static float x[1000][1000];
Edited to add:
Sigh Another silent downvoter. Not that I'm surprised. This is obviously the simplest solution to OP's problem, so it violates the prime tenet of the OOP Komissariat: The simplest solution is always wrong.