【问题标题】:CommEvent overlapped in QtCommEvent 在 Qt 中重叠
【发布时间】:2013-09-27 14:04:56
【问题描述】:

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

CommEvent overlapped write error: 995 

这个警告是什么意思?更重要的是,我该如何解决?

【问题讨论】:

  • the source看来,这个警告似乎只在Windows中,当GetOverlappedResult()失败和GetLastError() != ERROR_IO_INCOMPLETE时给出
  • @Frank:考虑切换到 QtSerialPort?

标签: qt qextserialport


【解决方案1】:

the source 看来,GetLastError() 返回的是 995。 995 代表ERROR_OPERATION_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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2017-10-13
    • 1970-01-01
    • 2015-12-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-07-15
    相关资源
    最近更新 更多