title: Getting error while debugging "Debug Error .. Heap corruption detected"
body: <p>I am using Visual Studio 2005. While debugging code I am getting following error message and after that it is adding break,</p>
  
  <blockquote>
    <p>Debug Error !
     Program :- 
     Heap Corruption detected : after normal block c#2368 at 0x01d21e30. CRT detected that the application wrote memory after end of heap buffer.</p>
  </blockquote>
  
  <p>Above error comes on the line </p>
  
  <pre><code>delete values[i];
  </code></pre>
  
  <p>where <code>values</code> is a vector of <code>(const wchar_t *)</code>.</p>
  
  <p>Anybody having idea where this error coming from?</p>