kshfire / qextserialport

Automatically exported from code.google.com/p/qextserialport
Other
0 stars 0 forks source link

program freeze when remove serial USB device #161

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
QextSerialPort 1.2b?

What steps will reproduce the problem?
1. open /dev/ttyUSB0
2. unplug usb device
3. call any API function, I use bytesAvailable()

The program freezes for a while 2..3 seconds, but I feel that moving the mouse 
will abort this waiting.
After this time api returns an error code, which is reasonable.

I would expect that there is no waiting and just the error return value.

This is valid for Linux and Windows

How can I better test for presence of serial port that I have connected to. I 
mean I do not want to block my program but I want immediate answer.

Regards,

Adib.

Original issue reported on code.google.com by Adib.Tar...@gmail.com on 19 Apr 2013 at 7:16

GoogleCodeExporter commented 8 years ago
Hi, have a look at the last patch I've submitted here: 
http://code.google.com/p/qextserialport/issues/detail?id=65

It works for me

Giorgio

Original comment by giorgio.cardarelli@gmail.com on 16 Jul 2013 at 9:52