title: Why does this application crash? (Unhandled exception at 0x52B13499 (ucrtbased.dll))
body: <p>Error: Unhandled exception at 0x52B13499 (ucrtbased.dll) in ConsoleApplication1.exe: 0xC00000FD: Stack overflow (parameters: 0x00000000, 0x00802000).
  Line: 8</p>
  <p>Code:</p>
  <pre class="lang-cpp prettyprint-override"><code>#include &lt;iostream&gt;
  
  void doA();
  
  void doB()
  {
      std::cout &lt;&lt; &quot;In doB()\n&quot;;
      doA();
  }
  
  
  void doA()
  {
      std::cout &lt;&lt; &quot;Starting doA()\n&quot;;
  
      doB();
  
      std::cout &lt;&lt; &quot;Ending doA()\n&quot;;
  }
  
  int main()
  {
      std::cout &lt;&lt; &quot;Starting main()\n&quot;;
  
      doA();
  
      std::cout &lt;&lt; &quot;Ending main()\n&quot;;
  
      return 0;
  }
  </code></pre>