|
RThreshold is set to 1, which means that the oncomm event will occur if the data received in the buffer is greater than or equal to 1 byte. Because the windonws system shields many underlying calls, when VB responds to the oncomm event, the length of the data received in the buffer is Not sure, friends who are interested can make a sending program to send fixed-length data regularly (more than 10 bytes, in order to see the receiving effect), and then make a receiving program, RThreshold is set to 1, when VB responds to the oncomm event , Check the received data length, you will find the problem. |
|