Error: valid samples = 0 <> adc bufferlength = 4800
I am somewhat new to VB6. I am having the error above when I restart my program (Start->Stop->Start->Error). There is no error on the first start. I understand that the oldmGetValidSample is an imported function, but, for some reason, on the second start, samples is set to 0 instead of being updated. What does oldmGetValidSample do to the samples variable exactly?