WritePipeAsync returns error code e00002c2 (Bad Argument)
WritePipeAsync returns error code e00002c2 (Bad Argument)
- Subject: WritePipeAsync returns error code e00002c2 (Bad Argument)
- From: Ian was here <email@hidden>
- Date: Fri, 30 Jan 2009 12:02:33 -0800 (PST)
For some reasom when I call WritePipeAsync(), I get error code e0002c2 (kIOReturnBadArgument). I Googled the heck out of it and haven't found any similar issues. If I use WritePipe(), it works great. Here is my code:
char gBuffer[64] = {0};
gBuffer[0] = 1;
gBuffer[1] = 1;
gBuffer[2] = 's';
IOReturn kr = (*interface)->WritePipeAsync(interface, 2, gBuffer, sizeof(gBuffer), (IOAsyncCallback1)WriteCompletion, (void *)interface);
Note: this is taken from Apple's USB sample code.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden