Open GoogleCodeExporter opened 8 years ago
now the latest version is 2.8.0, this problem seems still exist.
What steps will reproduce the problem?
1. connect the device over usb
2. openPort() and addSerialPortEventListener()
3. disconnect the device
What is the expected output? What do you see instead?
I want to get a disconnect event, or catch a exception.
But I find that the serialPortEventListener is still working, although it is no
longer valid. And, at the same time, I find that the CPU load on my system
approaching 100%, almost crash.
What version of the product are you using? On what operating system?
jssc-2.8.0 on win7sp2x64.
Please provide any additional information below.
I dont know if there is a callback function about disconnecting the serial port
in the native code. If there is, we can easily get a event or catch an
exception. If there isnt, maybe a solution with heartbeat and timeout is
helpful.
Original comment by crazyboyfeng
on 17 May 2014 at 8:43
Original issue reported on code.google.com by
micha...@gmail.com
on 18 Jun 2012 at 11:58