title: Warning message regarding stack size
body: <p>I use <code>Visual Studio 2010</code> with <code>Code Analysis</code> activated. In my code there's a line allocating some memory in a function:</p>
  
  <pre><code>TCHAR someString[40000]; 
  </code></pre>
  
  <p>The code analysis throws a warning message:</p>
  
  <blockquote>
    <p>warning C6262: Function uses '40000' bytes of stack: exceeds /analyze:stacksize'16384'. Consider moving some data to heap</p>
  </blockquote>
  
  <p>I wonder if I should take the warning serious. Do I have to face some real trouble if I allocate some memory on the stack > 16384? Or is it just a general warning message which reminds me that I have to take care for my stack size in general? As far as I know the default stack size is 1MB (if you use Visual Studio).</p>