Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!sun-barr!apple!agate!ucbvax!janus.Berkeley.EDU!kipnis From: kipnis@janus.Berkeley.EDU (Gary Kipnis) Newsgroups: comp.windows.ms Subject: serial i/o under windows Message-ID: <31877@ucbvax.BERKELEY.EDU> Date: 12 Oct 89 19:43:27 GMT Sender: usenet@ucbvax.BERKELEY.EDU Reply-To: kipnis@janus.Berkeley.EDU (Gary Kipnis) Organization: University of California, Berkeley Lines: 17 Hi, I have another question regarding serial i/o under ms-windows, I decided to use 'GetCommError' function and then look at the number of characters in the input queue if > 0 ==> I read them, otherewise I have no characters to process, I use the above call every time I get a WM_TIMER message, is there a better method than this. One problem with this method is that sometimes, the program 'locks up', I can see that characters are coming in (modem lights blinking) but nothing is read from the comm port, I can exit the program, restart it and it will work fine, but I could not fine a logical explanation for above behavior Any suggestions, pointer would be greately appreciated. Thank You, gary