I'm working on an application for doing USB I/O.
The main problem I'm having right now is that there's an input buffer
that's being written to asynchronously by a callback routine whenever
USB input is being detected (ReadPipeAsync()).
I'm also trying to read the contents of this input buffer and copy it
into a string or other array for use after input is detected.
I'm running into problems where the callback routine is trying to write
to the array at the same time as another method is trying to read it
causing an access fault.
I know how to fix ...