Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [OSX] ReadPipe error UserSpace



At 2:32 PM +0100 3/23/02, Manu wrote:

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?


To decode error messages, have a look in error.h, or <http://developer.apple.com/techpubs/macosx/Darwin/IOKit/DeviceInterfaces/AccessingHardware/AH_Overview/Error_Return_Values.html>.

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.

References: 
 >[OSX] ReadPipe error UserSpace (From: Manu <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.