Microsoft Visual C++ Debug Library Error Message

Asked By 0 points N/A Posted on -

I used C++ for my programming. I want to make Visual Studio 2010 with the C++ programming language. But when I want to run this software this shows an error message and while Debugging this I cant do it. So what can I do now. Here are the picture is given below:


Microsoft Visual C++ Debug Library

Debug Assertion Failed!

Program: " "

Line: 108

Expression: string iterator not incrementable

For more information on how your program can cause an assertion failure, see the Visual C++ documentation on asserts.

(Press Retry to debug the application)

Abort     Retry     Ignore

Answered By 0 points N/A #82273

Microsoft Visual C++ Debug Library Error Message


In your code somewhere you have declared a string and you are trying to move through that string with an iterator , well the problem is that your iterator moves through the indexes of the string, as it moves it has to increment (it means that if your iterator is declared as i and starts from 0 , it has to increment with some value, lets say, you have to move through every index of your string and the iterator has to increment by one every cycle, so you have to put in there somewhere this code: i = i+1, or just i++;)

That's the only solution to your problem, try it and write back if you have further problems.

Login/Register to Answer

Related Questions