• 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
Re: USBDeviceOpen eventually returns kIOReturnExclusiveAccess
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: USBDeviceOpen eventually returns kIOReturnExclusiveAccess


  • Subject: Re: USBDeviceOpen eventually returns kIOReturnExclusiveAccess
  • From: Pete Gontier <email@hidden>
  • Date: Fri, 28 Sep 2001 09:41:30 -0700

The problem turned out to be that Classic was running. I should have
realized this sooner. I imagine this problem comes up on this list about
every 5 seconds. My apologies.

circa 9/27/01 7:58 PM, Doug Wyatt <email@hidden> wrote:

> Is Classic running?
>
> If so, it will grab your USB device since MIDI drivers are really just
> user-side plug-ins, not kernel drivers.
>
> 10.1 has some mechanisms to work around this, although I haven't used
> them personally. Also, a revised set of MIDI sample driver source will
> follow, hopefully before long -- so it will be helpful for you to keep
> track of any changes you make to the older sample driver source.
>
> Doug
>
>
> On Thursday, September 27, 2001, at 08:16 , Pete Gontier wrote:
>
>> I'm revising a USB MIDI plug-in which is based on the Apple sample code.
>> USBDeviceScanner::ScanDevices fails when USBDeviceOpen returns
>> kIOReturnExclusiveAccess, "exclusive access and device already open".
>>
>> If this error occurred every time, I'd think some other part of my code
>> had
>> opened the device and forgotten to close it, perhaps on a previous
>> instantiation. But I'm pretty sure that's not the case, because this
>> code
>> does work for a while after boot, but stops working after a few
>> instantiations (on the order of 3 to 6). After that, I can reboot to
>> make it
>> start working again. Weird.
>>
>> I'm running 10.0.4 vanilla on a G4 tower (part M5183) and using the
>> PlayNotes sample to test.
>>
>> Any ideas what to look for? I know very little about what I'm doing
>> here,
>> but have some experience with OMS and USB under 9, if that makes any
>> difference.
>>
>> --
>>
>> Pete Gontier -- pete at midiman dot net -- <http://www.midiman.net/>
>> _______________________________________________
>> coreaudio-api mailing list
>> email@hidden
>> http://www.lists.apple.com/mailman/listinfo/coreaudio-api
>>
>>
> --
> Doug Wyatt
> work: email@hidden (CoreAudio)
> personal: email@hidden http://www.sonosphere.com
>
> "It's kind of fun to do the impossible."
> -- Walt Disney
> _______________________________________________
> coreaudio-api mailing list
> email@hidden
> http://www.lists.apple.com/mailman/listinfo/coreaudio-api
>


--

Pete Gontier -- pete at midiman dot net -- <http://www.midiman.net/>


References: 
 >Re: USBDeviceOpen eventually returns kIOReturnExclusiveAccess (From: Doug Wyatt <email@hidden>)

  • Prev by Date: Component List application
  • Next by Date: Re: Has AudioUnits actually been tried in carbon?
  • Previous by thread: Re: USBDeviceOpen eventually returns kIOReturnExclusiveAccess
  • Next by thread: Set kAudioUnitProperty_StreamFormat seems to be broken
  • Index(es):
    • Date
    • Thread