jealian / java-simple-serial-connector

Automatically exported from code.google.com/p/java-simple-serial-connector
0 stars 0 forks source link

Stuck on waitEvents() method forever when no data is available #81

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Writing string data on com4 port i.e. (char)22, t, char(13), ., \r\n 

What is the expected output? What do you see instead?
1. Program should not stuck when data is not available. Program is working fine 
when data is available. However stuck on waitEvents() method when there is no 
data 

What version of the product are you using? On what operating system?
Windows 7 64 Bit. latest version of JSSC 2.8.0

Please provide any additional information below.

private class EventThread extends Thread {

        private boolean threadTerminated = false;

        @Override
        public void run() {
            while(!threadTerminated){
                int[][] eventArray = waitEvents();
                for(int i = 0; i < eventArray.length; i++){

Original issue reported on code.google.com by happy.bh...@gmail.com on 2 Mar 2015 at 10:34