Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Why will this debug error come out
-
The program runs for a period of time may have this problem and the frequency is not high,why will this debug error come out?
-
@lnyhcma Apparently you have a QVector that you try to access outside it's actual size, you should fix that.
PS:
Posting screenshots of error messages or code is bad, posting a photo of a monitor that displays the error message is even worse!
-
This post is deleted!
-
@J-Hilk Thank you very much, l will pay attention to that next time.
-
@J-Hilk l cannot fix that ...The size of all mine QVector arrays has not been defined, and when l try to access them,l use like
for (int i=0; i<QVec.size(); i++) .
-
@lnyhcma I suggest attaching a debugger and letting it crash and inspect the stack trace, should be possible, since the error message clearly states its a debug build.
Should make identifying the issue easy enough
-
@J-Hilk OK.Thank you again