circa 10/10/03 4:08, Osamu Shigematsu
<email@hidden> wrote:
> (kIOReturnExclusiveAccess) never occures with my iBook. (It) means that
> somebody already hold the device (who?) and my app can not open it, I think.
> Is this right?
Probably. The most likely explanation is that Classic has opened the
device/interface. To test this, simply make sure Classic is not running. My
guess would be Classic is not running on your iBook, which is why the
problem seems to be hardware-specific. The good news is that Classic can
under many circumstances be persuaded to close the device. The general idea
is that when you get kIOReturnExclusiveAccess, sleep for a second and try
again. My code tries 10 times before giving up; I have seen it make 7
attempts before succeeding. The repeated attempts cause a callback in
Classic which eventually persuades it to close the device. I know there is
detailed documentation on this, but I wasn't able to find it in a quick
search. Perhaps someone else will come along and provide a link.
--
Pete Gontier
http://www.m-audio.com/
_______________________________________________
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.