您好,欢迎来到[编程问答]网站首页   源码下载   电子书籍   软件下载   专题
当前位置:首页 >> 编程问答 >> VC/MFC >> CSerialPort类 ReadFile Failed with the following error

CSerialPort类 ReadFile Failed with the following error

来源:网络整理     时间:2016/8/15 5:11:08     关键词:

关于网友提出的“ CSerialPort类 ReadFile Failed with the following error”问题疑问,本网通过在网上对“ CSerialPort类 ReadFile Failed with the following error”有关的相关答案进行了整理,供用户进行参考,详细问题解答如下:

问题: CSerialPort类 ReadFile Failed with the following error
描述:

在用CSerialPort类 的时候,碰到了下面的警告,还是第一次遇到。希望用过的大大们帮忙分析下哈。
WARNING:ReadFile() Failed with the following error
由于线程退出或者应用程序请求,已放弃I/O操作。
谢谢!
当时:
串口的设置:
38400,每帧24个字节,每20ms接收一帧数据。


解决方案1:

你initialport是怎么设置的?

解决方案2:

这个串口类用过,但你的问题不是很清楚,难道读的缓冲区满了?帮顶

解决方案3:

没有释放吧


以上介绍了“ CSerialPort类 ReadFile Failed with the following error”的问题解答,希望对有需要的网友有所帮助。
本文网址链接:http://www.codes51.com/itwd/3295254.html

相关图片

相关文章