Sign in to follow this  
maya18222

vector out of range

Recommended Posts

Is there any way to get Visual studio (2008) to tell you the line of code (or take you to it), when you get a "vector subscript out of range" error? I managed to solve the problem by stepping through, as i have a bunch of vector stuff going on in one particular part of the app. But it would be nice to know this for the future, but im wondering if its even possible as i know that the STL provides very little error checking for optimization, but i wasn't sure if there was something in debug mode.

Share this post


Link to post
Share on other sites
When you get the assertion error, hit Retry to break into the debugger, then go to the Call Stack and click on the entry two levels above the current stack entry. That will be the line of your code that caused the error.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this