1) Is my buffer operating asychronously ??
In other words, once I add the data to the buffer, control flow should be
finished in this proc since the buffer is handled by a separate timer--or am
I wrong?
2) The procedure call to IsRTState_Idle is the slowest point since it must
evaluate (Select/Case) what state the buffer is in. Anyway to handle this
without losing data?
======================
I receive a data stream from a remote server. The data is receive in a
control event and the following procedure is called:
Private Sub ProcessData (sngData as Single)
cmdData.Text = sngData
'Check buffer to see if it is not doing something else
(e.g user using mouse) 'Some data may be lost
If IsRTState_Idle(RTSTATE_TIMER) Then
'If free add the data to the buffer class
g_colBuffer.Add sngData
End If
End Sub
Thanks
David