I try read a pipe with the ReadPipeTO function but i've an error
e0004051. I don't understand where is the problem.
I'm pretty sure this is a time out error, its the sort of thing you'd
expect to happen using ReadPipeTO, as the TO bit means use a timeout.
What timeout values are you using?
It turns out 0xe0004xxx is a USB error code. In USB.h you'll find a
USB error 0x51 is a time out.
#define kIOUSBTransactionTimeout iokit_usb_err(81) // 0x51 time out
With the ReadPipe function if i delete the
"numBytesread=sizeof(gBuffer);" line i've an e00002c8 return error.
That looks like a general IOKit error.
#define kIOReturnVMError iokit_common_err(0x2c8) // misc. VM failure
I don't know what your code change is doing, but maybe you're
poassing uninitialised data as the size to read, this would
generally cause all sorts of memory errors.
_______________________________________________
usb mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/usb
Do not post admin requests to the list. They will be ignored.