Hi,
I wrote a program where I get a debug assertion failure. I've made it so that if I press ignore, execution continues correctly. The only thing is I don't want to keep pressing ignore, is there a way to make it ignore automatically? Without the message box appearing?
I doubt the code will be of any use to you, but here it is. The assertion failure occurs in the try part, then I press ignore, and it goes to the catch.
while( std::getline(boxFiles, discardLetters, ' ') )
{
try
{
std::getline(boxFiles, boxCoordinates, '\n');
if (i >= 1)
{
while (charsInImage[i] != '|' && charsInImage[i] != '\"')
{
i--;
}
savePosition = i;
i++;
if (charsInImage[i] != '?')
{
while(charsInImage[i] != '|')
{
outFile << charsInImage[i];
i++;
}
}
}
if (charsInImage[i] != '?')
{
outFile<< " " << boxCoordinates <<endl;
}
i = savePosition - 1;
}
catch (...)
{
fprintf(logFP, tmpFullFileName);
break;
}
}
I know this is probably something I should be able to find online easily, but I guess I've been searching for the wrong thing, cuz I've got nothing. Thanks in advance!