This is the second time I run in this strange situation:
My application has a memory problem (e.g. writing over the end of an array) and crashes. While looking for the error I add plenty of prints and test the application several times, with several consecutive crashes, which is normal. Then, suddenly, my application doesn't crash anymore, but runs much slower.
It took me very long to realize that Windows does something with the folder that contains my application, since renaming it, and running the application again, makes it crash again as expected.
It is like windows detected that a given executable is problematic and then marks its containing folder as "run slower and more tolerant mode". I am not sure if I made myself understood, but I find that behaviour very strange, and couldn't find any other way to "unmark" the folder than renaming it.
Any explanation of what is going on is very welcome!