What makes Debug different from Release?
You are somewhere trashing your arrays in release mode too, you are just "lucky" it hasn't shown as a bug yet.
I would suggest going into Debug mode and stepping through your code to find where the problem is.
Just out of curiosity, did your VS set you to debugging in Release by default?
Regards,
Stitchs.
"Debug" and "Release" are idioms of Visual Studio (and many other IDEs) -- they are the names of default build configurations generated for a solution/project/whatever-your-IDE-calls-it. Generally, the "debug" configuration does no optimization and enables a bunch of extra sanity checking and safety mechanisms that are not present in the "release" configuration (which also enables optimizations). Almost all of the options in the configuration correspond directly to parameters that can be given to the compiler and linker and any other tools used to actually build your project.
Every major IDE that supports these kinds of configurations also allows you to modify them as you need to, and usually to define additional ones as well.
Just out of curiosity, did your VS set you to debugging in Release by default?
No, I recently made a topic asking how to ship out a usable .exe, and they told me that I should build in release configuration. So instead of switching back all the time, I just got lazy and left it on Release. I have learned the error of my ways...
Thanks for the information everybody! If I have any other questions, I'll be sure to come back to this thread.
So I made sure I was always set to Debug mode after this thread, and so far I haven't had any errors. But then I switched to Release to test something out, and now everything has been thrown into chaos again. Things are being drawn out of order, my functions are being called with the wrong parameters-- everything is out of whack. If I can't trust Debug mode to get rid of these things, then how will I know nothign will go wrong with different computers and settings? Do I just have to keep switching in between them and making sure both modes run correctly? What is happening? Why is it so drastically different to run in Release mode?
In release mode, it creates a separate file (Called Release) for your project. You have to re-link Release Mode for it to work and include your Library DLL's and Files. I had your same problem with my first game (Pong :)!).