title: Stack push causes critical error
body: <p>I am new to C++ and working with STL container at the moment. 
  I got a serious problem executing a <code>nodeStack.push(startnode)</code> - the compiler shows up a </p>
  
  <blockquote>
    <p>Critical error detected c0000374</p>
  </blockquote>
  
  <p>Followign code shows the function where the mentioned error occurs:</p>
  
  <pre><code>vector&lt;int&gt; Graph::iterativeDepthSearch(map&lt;int, vector&lt;int&gt;&gt; adjlist, int startnode) {
      stack&lt;int&gt; nodeStack;
      vector&lt;int&gt; visitList;
  
      // Knotenbesuchsliste initialisieren
      int* val = new int(adjlist.size());
      for (int i = 0; i &lt; (int) adjlist.size(); i++) {
          val[i] = 0;
      }
  
      int cnt = 1;
      nodeStack.push(startnode);
      ....
  }
  </code></pre>
  
  <p>The error occurs in the line <code>nodeStack.push(startnode);</code>, startnode is initialized with 0.</p>