2

I'm using Qextserialport in QT, but I keep getting a waring:

CommEvent overlapped write error: 995 

What does this warning mean? And more important, how do I solve it?

László Papp
  • 51,870
  • 39
  • 111
  • 135
Frank
  • 2,446
  • 7
  • 33
  • 67
  • From [the source](http://code.google.com/p/qextserialport/source/browse/src/qextserialport_win.cpp), it seems that this warning is given only in Windows, when `GetOverlappedResult()` fails and `GetLastError() != ERROR_IO_INCOMPLETE` – sashoalm Jan 23 '13 at 12:40
  • @Frank: considered switching to QtSerialPort? – László Papp Sep 27 '13 at 06:05

1 Answers1

1

From the source it seems 995 is what GetLastError() returned. 995 stands for ERROR_OPERATION_ABORTED - The I/O operation has been aborted because of either a thread exit or an application request.

This is from 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
sashoalm
  • 75,001
  • 122
  • 434
  • 781