With out going into any detail about my code, what does this message usually mean:
Unhandled exception at 0x760db9bc in program.exe: Microsoft C++ exception: std::out_of_range at memory location 0x0017f000..
I get this message pretty often and the editor never tells me where in my code that the error is occurring. This makes it difficult for me to debug. Any ideas???
This message pops up in a window and the editor gives me the option of breaking or continuing. How do I find the location of the bug in my code?
This exception is probably thrown by one of your containers (vector, string, etc.) when you use .at() method.
If I remember correctly, when you press break, the debugging information should remain. Look for stack trace to see what functions were called previously. If that doesn't help, try removing the containers one by one and see when the problem goes away. Using cout at important points in your code is a great way to know what has and what hasn't been executed, so you should add some of those.
If you're using Visual Studio, you can turn on exception debugging. Switch on std::exception, and and run your program in the debugger. It will break into the debugger just before it throws the exception.