Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/qt/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
CommEvent在Qt中重叠_Qt_Qextserialport - Fatal编程技术网

CommEvent在Qt中重叠

CommEvent在Qt中重叠,qt,qextserialport,Qt,Qextserialport,我在QT中使用Qextserialport,但我不断收到警告: CommEvent overlapped write error: 995 这个警告是什么意思?更重要的是,如何解决它?从它看来995是GetLastError()返回的。995代表ERROR\u OPERATION\u ABORTED-由于线程退出或应用程序请求,I/O操作已中止 这来自winerror.h: // // MessageId: ERROR_OPERATION_ABORTED // // MessageText:

我在QT中使用Qextserialport,但我不断收到警告:

CommEvent overlapped write error: 995 
这个警告是什么意思?更重要的是,如何解决它?

从它看来995是
GetLastError()
返回的。995代表
ERROR\u OPERATION\u ABORTED
-由于线程退出或应用程序请求,I/O操作已中止

这来自
winerror.h

//
// MessageId: ERROR_OPERATION_ABORTED
//
// MessageText:
//
// The I/O operation has been aborted because of either a thread exit or an application request.
//
#define ERROR_OPERATION_ABORTED          995L

从中,似乎只有在Windows中,当
GetOverlappedResult()
失败且
GetLastError()!=错误_IO_不完整
@Frank:考虑切换到QtSerialPort吗?