I was working on this program (which displays models). It ran fine for me but other people complained about misplaced vertices. It turned out that when I ran the program from my projects folder (either from VC itelf or from the Release folder directly) it worked fine, but if I moved the exe to another folder I saw the same bugs.

The error was dereferencing an iterator pointing to end(), but why didn't the error occur when running from the projects folder. Did it start some to me unknown VC-feature that auto-corrects or avoid errors or something? Or is it just plain coincidence (highly unlikely as I've been debugging for, well, days)?

I use VC 2003 btw!