Question about debug and release mode.
Good day, everyone. I have strange behavior of my program in debug and release mode. Here it is:
Here is screen with a code. I wrote qDebug in condition of indexes i and j: qDebug()<<"i==elemMismatch1&&j>elemMismatch2"; and qDebug()<<"String for replace was added into DataNewDocument[numberOfVersionNewDocuments].StatusOfRowInOlderVesrsion";. If program has come in those points - it will be shown in console.
Now i set point of stop anywhere in program:
Let's start program in debug mode. We will see some thing like this:
As you can see, program has entered in all "if's" and "else's" and displayed it in console.
Now let's start program in release mode without any point of stop. Here what console will show us:
You see? Program has't entered in last condition "else" in consequence of which data has corrupt and result in end are incorrect.
What cause this?
Many thanks in advance.
Surely no came across this? Or am I really not competent?