atunplatino
Technical User
I am using VB6's MSCOMM (mode binary) to interface to the serial port.
The specific question is; Has anybody else run into a problem where OnComm does not fire when there is data waiting in the receive buffer?
Here is my broader application:
When attempting a simple loopback test of sending out 100 bytes of data, I consistently receive back a truncated number of bytes (98). WHen I step through the program, I find that I have read only the first 98 bytes and the final 2 bytes remain in the buffer. But OnComm does not fire. Also of interest is I get the same number of bytes truncated (2) regardless of the number I send out.
Any Help greatly appreciated.
Thanks.
-atunplatino
The specific question is; Has anybody else run into a problem where OnComm does not fire when there is data waiting in the receive buffer?
Here is my broader application:
When attempting a simple loopback test of sending out 100 bytes of data, I consistently receive back a truncated number of bytes (98). WHen I step through the program, I find that I have read only the first 98 bytes and the final 2 bytes remain in the buffer. But OnComm does not fire. Also of interest is I get the same number of bytes truncated (2) regardless of the number I send out.
Any Help greatly appreciated.
Thanks.
-atunplatino