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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to