ASSERT failure in QList...
Solved
General and Desktop
-
I am facing this Error , Suggest me for getting out of this ...!
ASSERT failure in QList<T>::at: "index out of range", file ../../Qt/5.10.1/gcc_64/include/QtCore/qlist.h, line 541
22:53:22: The program has unexpectedly finished.
22:53:22: The process was ended forcefully.QList<QSerialPortInfo> list; list = QSerialPortInfo::availablePorts(); for (int i= 0; i < list.length(); i++) { ui->comboBox->addItem(list[i].portName()); }
-
-
The crash does not happen here. Take a look at the backtrace.
-
@Christian-Ehrlicher
If i click the link (in the error message ) Could not open "../../Qt/5.10.1/gcc_64/include/QtCore/qlist.h" for reading. Either the file does not exist or you do not have the permissions to open iti am not able to open that file, Could yu say me how to do it
-
-
@Christian-Ehrlicher finally i got it why its came like this by the help of , @mrjj
In my codeif (LineToSend >= m_lines.size() ) { // check end of list // here i have gave like this. so ,now its works qDebug() << "end of list"; return; }