🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms
Article #1886

serial i/o under windows

#1886
From: Gary Kipnis
Date: Thu, 12 Oct 1989 19:43
17 lines
1175 bytes
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
Technical Details
Message-ID: <31877@ucbvax.BERKELEY.EDU>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!sun-barr!apple!agate!ucbvax!janus.Berkeley.EDU!kipnis

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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