• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
WritePipeAsync returns error code e00002c2 (Bad Argument)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: Newbie Object Sharing Question
  • Next by Date: animation keys
  • Previous by thread: Re: Newbie Object Sharing Question
  • Next by thread: Re: WritePipeAsync returns error code e00002c2 (Bad Argument)
  • Index(es):
    • Date
    • Thread