title: How do I fix "a debugging check in this application has failed" error?
body: <p>I've recently managed to install Code::Blocks and a MinGW compiler on a new computer.</p>
  <p>I have an issue with a debugger on Code::Blocks. It literally won't let me create any project and give me an error message.</p>
  <p>The error message goes as follows:</p>
  <pre><code>wxWidgets Debug Alert
  
  A debugging check in this application has failed.
  
  ../../src/common/file.cpp(361): assert &quot;&quot;(pBuf != __null) &amp;&amp; IsOpened()&quot;&quot; failed in Write()
  </code></pre>
  <p>Here's a picture of the whole thing: [error message]
  <img src="https://i.stack.imgur.com/Ziv46.png" alt="img" /></p>
  <p>If I press stop, then everything crashes.</p>
  <p>If, however, I press Continue, I get this warning:</p>
  <pre><code>Warning
  
  Couldn't save project C:\Users\40737\Documents\yy\yy.cbp
  
  (Maybe the file is write-protected?)
  </code></pre>
  <p>Here's a picture: [warning message]
  <img src="https://i.stack.imgur.com/DImc9.png" alt="img" /></p>
  <p>If I go ahead and click okay, the same error shows up again:</p>
  <p>A picture, again: [error shows up again]
  <img src="https://i.stack.imgur.com/obEzL.png" alt="img" /></p>
  <p>What is there to do?</p>