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: kIOReturnExclusiveAccess from USBInterfaceOpen()



oops. I have the sense inverted on the return of Interface->open(this). It's succeeding now.
Thanks for the support.


Kris Daniel
Line 6, Inc.

On Thursday, October 2, 2003, at 04:12 PM, Kris Daniel wrote:

On Thursday, October 2, 2003, at 03:30 PM, Fernando Urbina wrote:

On 10/2/03 4:24 PM, "Kris Daniel" <email@hidden> wrote:

err = fDevice->SetConfiguration(this, cd->bConfigurationValue, true);

Can you try and pass "false" for the 3rd parameter -- that will prevent us
from trying to load drivers for your interfaces, which might be a fine thing
to do in your case....

That change makes sense. I changed the code, it still gives an error when I open it, but, I no longer see the USB log message regarding "IOUSBInterface[..]::handleOpen failing because super::handleOpen failed (someone already has it open)".
The error returned is still 0x00000001.
I'm using one class to open the device, and another class to open the interface, the 2nd class passes its own "this" pointer instead of sending the device's owner's pointer... could that be the reason?


Kris Daniel
Line 6, Inc.
_______________________________________________
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.
_______________________________________________
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: 
 >Re: kIOReturnExclusiveAccess from USBInterfaceOpen() (From: Kris Daniel <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.