
4 Jul
2013
4 Jul
'13
10:17 a.m.
I have the following simplified code to read data from a RS232 port. For some (from beginning) runs, io.run() returns immediately and m_handler() is called which is expected. but sometimes (a fresh run from beginning), io.run() goes into a inside forever loop(stacked inside forever) even for the first time called inside the while loop. And this happens randomly. What's is/are the potential problem(s) at here?
In your code, it means that no data can be read from the port.