Quantcast
Channel: QtWebEngine
Viewing all articles
Browse latest Browse all 13965

An annoying problem about QSerialPort usage

$
0
0
Hello everyone, I have a strange problem, I design a application, one part of code of this project like following: while(serialPort->waitForReadyRead(30)) {              DataReceive = serialPort->readAll();              ReceiveData.append(DataReceive); } The strange problem is sometimes my application could work well, but sometimes It would show “SIGSEGV, Segmentation fault” at DataReceive = serialPort->readAll(); My application run same code, but sometime would be failed.And does Qt provide debug tool?? Because when I receive “SIGSEGV, Segmentation fault”, I had no idea with this. Thanks in advance.

Viewing all articles
Browse latest Browse all 13965

Trending Articles