I am using Eltima Virtual Port in my program.
Some weird thing happen on my co-worker machine.
For eg, we send a receipt from a POS system to virtual port. The receipt look like split into 2 separate byte.
Eg: 958 bytes was split into 948 bytes & 10 bytes.
This error does not happen to my development machine.
After checking the log file, i suspect that the virtual close event trigger before full receipt captured.
Private Sub AxVSPortAx1_OnRxChar(ByVal sender As Object, ByVal e As AxVSPortLib._IVSPortAxEvents_OnRxCharEvent) Handles AxVSPortAx1.OnRxChar
Dim Buff() As Byte
Dim ReceivedCnt As Long
Buff = AxVSPortAx1.ReadArray(e.count)
ReceivedCnt = UBound(Buff) + 1
If ReceivedCnt <> 0 Then
RTReceipt.Text = System.Text.ASCIIEncoding.UTF8.GetString(Buff)