0

I'm writing a QT based native c++ app that uses QtSerialPort library under Win7. It communicates with it periodically(say every 5seconds).
Problem is: the device that my app connects to via serial port, has power loss issues(can't change this). When this happens my app becomes hung and immortal: can't be killed by windows task manager or by process hacker(a nice replacement for windows task manager)' termination facilities. Soft restart is the best solution at the hand.

Now how can my app cope with such device situation?

4

1 回答 1

0

我会将这个问题提交到 Qt 的兴趣邮件列表 (interest@qt-project.org)。由于 QtSerialPort 库是相当新的,所以当广泛的用户群开始使用它时可能会出现错误。编写该库的开发人员很有可能可以为您提供更好的解决方案,或者他们发现这是他们代码中的错误并修复它。

于 2013-04-18T15:21:51.017 回答