I was really hoping someone would say: "Yeah, that happened to me once and here's how you fix it." But, I guess not; that would be too easy.
Let me ask a different question. How would you go about trying to track down this problem? I'm just a hobbyist and only recently started using Visual Studio regularly. I'm using an older laptop with Win 7 and my VS version is 11 update 5, or MSVS Express 2012. One other note is that it seems to run just fine when I run the exe using gDEBugger, which I find odd. When I double click the exe file to run it, sometimes it's perfect, sometimes not. Furthermore, the green boxes are random, i.e. not the same every time, which I also find odd.
I don't know what code might be helpful to see, since it should be the same damn executable run from the Debug folder. If you really want to look at it though, I pushed it to my github (
https://github.com/mgoetschius/GameEngine). Fair warning it's ~1600 lines in 37 files as it stands right now.
Thanks for reading. If you have any idea where I should start, I'd love to hear it.