Forum
Please or Register to create posts and topics.

First GetPacket Call Always Returns InvalidSize?

Is it the case that the very first call to GetPacket will always return InvalidSize?

I see in all of the examples that when using GetPacket, it is always checked for Empty and Ok before processing.  Indeed, good code practice and absolutely necessary, but just checking for my sanity.

It generally takes quite some time between initalization of the device and data reaching the software. As the API is designed to be non-blocking, you should expect the first calls to GetPacket after StartDevice to fail/not return data.