I have enough stack space for my array, so why does this loop fail?
<pre><code>int width = 2560;
int height = 1440;
int frameBuffer[width*height];
for (int i = 0; i &lt; width*height; ++i)
    frameBuffer[i]=i;
</code></pre>

<p>This code locks the process up, even thou I am well within the bounds of 32 bit integers and I have plenty of memory to allocate the array?</p>

<p>BTW Ironic, isn't it? Asking about a stack overflow error on a site called stackoverflow :)</p>
