200,000,000 is much less than the maximum 32-bit INTEGER, 2,147,483,647.
views:
175answers:
1
+3
Q:
Why do I get a StackOverflowException when I specify the size of an INTEGER array to be 200,000,000?
+11
A:
A stack overflow happens not when your notation runs out of bits, but when your computer runs out of memory. A 200M-entry array would need 800Mb of memory. That is very large to put on the stack.
Ned Batchelder
2009-09-07 16:52:23
It's not a question of size of memory in general, but rather of stack size, which is smaller than total RAM amount. For example, on my Mac OS laptop with 4GB of RAM, default stack size is 8MB.
FX
2009-09-08 15:28:06