title: Determining Stack Space with Visual Studio
body: <p>I'm programming in C in Visual Studio 2005.  I have a multi-threaded program, but that's not especially important here.</p>
  
  <p>How can I determine (approximately) how much stack space my threads use?</p>
  
  <p>The technique I was planning to use is setting the stack memory to some predetermined value, say 0xDEADBEEF, running the program for a long time, pausing the program, and investigating the stack.</p>
  
  <p>How do I read and write stack memory with Visual Studio?</p>
  
  <p>EDIT:  See, for example, <a href="https://stackoverflow.com/questions/389219/how-to-determine-maximum-stack-usage">"How to determine maximum stack usage."</a>  That question talks about an embedded system, but here I'm trying to determine the answer on a regular PC.</p>