Jump to content
  • Advertisement
Sign in to follow this  

vector out of range

This topic is 3496 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!