Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
QSerialPort crashes if incoming data is more than 127 bytes at a time
Akash_Patil last edited by
Following code is implemented and crashes if data is more than 127bytes at a time.
byte_count = serial->bytesAvailable();
QByteArray data = serial->readAll();
Please help to solve the above issue.
where exactly does it crash? From the snippet you provided, nothing obvious is seen.
Run your program in a debugger and provide the stack trace after the crash.