Re: Audio Drivers unloading
Re: Audio Drivers unloading
- Subject: Re: Audio Drivers unloading
- From: "B.J. Buchalter" <email@hidden>
- Date: Sun, 14 Jul 2002 11:51:39 -0400
on 7/14/02 8:33 AM, Airy Andri at email@hidden wrote:
>
Hi.
>
>
I am developping an audio driver and I can't unload the driver unless I
>
logout and relogin.
>
I always get the message :
>
Can't unload com.airy.driver.AudioDriver due to -
>
com.airy.driver.AudioDriver: com_airy_driver_AudioEngine has 1
>
instance(s)
>
>
Did I forgot anything in my code ?
Nope. Some process in the system (probably loginwindow) is holding a
reference.
If you have two machines to work with, the easiest thing is to have the test
machine running with a console login (type ">console" as the user name into
the login window and then login to the text console). Then you can unload
and reload your kext at will -- you can even do it from your development
machine using ssh. This will also get you an immediate view of the IOLog
messages without having to mess around with the Console app or tail -F the
/var/log/system.log
If you don't have two machines then you will have to logout on each time to
unload the driver (unload it first and then logout). Sometimes I have seen
the unload not take effect unless you make loginwindow recycle (use ">exit"
as the username in the login window).
Best regards,
B.J. Buchalter
Metric Halo
M/S 601 - Building 8
Castle Point Campus
Castle Point, NY 12511-0601 USA
tel +1 845 831-8600
fax +1 603 250-2451
If you haven't heard ChannelStrip yet, you don't know what you're missing!
Check out SpectraFoo, ChannelStrip and Mobile I/O at
http://www.mhlabs.com/
Download a 12 day demo from <
http://www.mhlabs.com/demo/>
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.