title: General way of solving Error: Stack around the variable 'x' was corrupted
body: <p>I have a program which prompts me the error in VS2010, in debug : </p>
  
  <pre><code>Error: Stack around the variable 'x' was corrupted
  </code></pre>
  
  <p>This gives me the function where a stack overflow likely occurs, but I can't visually see where the problem is.</p>
  
  <p>Is there a general way to debug this error with VS2010? Would it be possible to indentify which write operation is overwritting the incorrect stack memory?
  thanks</p>