 <p>You're wrong about what's causing that error. On windows <code>*.exe has stopped working</code>. generally means that your application has <a href="http://en.wikipedia.org/wiki/Segfault" rel="nofollow">segmentation faulted</a>. </p> <p>This can be caused by any read or write out of the memory bounds, which generally means you messed up with a <code>free()</code>/<code>delete</code>, a <code>malloc()</code>/<code>new</code>, or a <code>NULL</code> somewhere, but with more code, or without further explanation, I cannot diagnose further.</p>