CommEvent在Qt中重叠
我在QT中使用Qextserialport,但我不断收到警告: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:
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吗?