I am really hoping someone will point out a dumb error(as usual) in my
software and everything will suddenly work. :D
This software is based on the USBSimple example. I modified it to read
from an isochronous IN endpoint, and it worked perfectly in full speed
mode.
However, when I test my device running in high speed mode, the software
crashes the entire computer. I either get a white-on-black system
crash error text on my screen and have to turn off the computer, or i
get the "reset your computer" message.
It seems like it has something to do with the memory allocation, but
like I said the exact same code work in full speed, and I am only
allocating 16 bytes with malloc, and handing the buffer to
ReadIsochPipeAsync. I use free() at the end.
The weird thing is that the data is read and written to the file, which
makes me feel the error happens in free(). I tried removing free but
that results in the "reboot your computer error".
I am not sure if this is a problem with my code, or maybe
ReadIsochPipeAsync is doing something strange with the buffer.
I have attached my transferData() function where all gets done after
the device is open/configured, etc. Everything happens successfully
until this point, and i am sure the device is connecting at high-speed
according to USB prober. It is also reading all descriptors correctly.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Usb mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/usb/email@hidden