title: Delete[] operator makes *.exe trigger a breakpoint and wntdll.pdb not loaded to appear
body: <p><code>Delete[]fName</code> in <code>decode()</code> causes this error, <code>delete</code> in <code>encode()</code> works fine. Without that <code>delete</code>, each new call of <code>decode()</code> results in 1 more MB wasted, which is expected, buy why adding <code>delete</code> causes crash there, but not in <code>encode()</code> ? <code>MAX_STRING_LENGTH</code> constant is <code>1048576</code> (1 MB of chars)</p>
  
  <pre><code>  void encode()
      {
          char* usrChars = new char[MAX_STRING_LENGTH];
          memset(usrChars, 0, MAX_STRING_LENGTH);
          cin.get();
          cin.getline(usrChars, MAX_STRING_LENGTH);
          ofstream f("E:/fc/enc_test.txt");
          //do stuff
          f.close();
          delete[]usrChars; //works fine
          decode();
          cout &lt;&lt; endl;
      }
      void decode()
      {
          char* fName = new char[MAX_STRING_LENGTH];
          memset(fName, 0, MAX_STRING_LENGTH);    
          fName = "e:/fc/enc_test.txt";
          ifstream f(fName);  
          delete[]fName; //causes crash
          //do stuff
      }
  </code></pre>