Skip to content

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

@GoogleCodeExporter

Description

@GoogleCodeExporter
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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions