• 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: AULab 2.0.1 behavior on quit
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AULab 2.0.1 behavior on quit


  • Subject: Re: AULab 2.0.1 behavior on quit
  • From: Jeff Moore <email@hidden>
  • Date: Tue, 27 Oct 2009 09:23:58 -0700

On Oct 26, 2009, at 10:44 PM, B.J. Buchalter wrote:

When I quit AULab 2.0.1 (have not checked on SL yet) with a doc open with some AU plugins loaded, I find that AULab does not close my plugin before the application terminates (it does close the plugin if I close the AULab doc). This is not really very friendly as the AU may hold some resource that is not automatically cleaned up when the application context is terminated.

It may not be friendly, but it is the exact same situation that you get if the process hosting your AU crashes.



Is this
(a) something that will be addressed in some future version of AULab, and
(b) something that AU's in general are expected to deal with in apps, or is it reasonable to expect that the AU will be closed before the app hosting it is terminated?

It is completely unreasonable to expect that every app will always clean-up and close your AU properly every single time. As I mentioned above, processes crash and they do a lot of other unexpected things too. I would argue that if your AU might leak resources in those circumstances, then you have a serious bug in your AU.


The good news is that there are lots of ways to find out when a process dies ranging from kill(2) and other signal-based approaches to mach port death notifications. I've done a lot in this area, so I'd be happy to help you figure out what works best for your AU.


--

Jeff Moore
Core Audio
Apple



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >AULab 2.0.1 behavior on quit (From: "B.J. Buchalter" <email@hidden>)

  • Prev by Date: Re: Trouble setting sub device list, with a private aggregate device (on Tiger)
  • Next by Date: Bluetooth one way audio with iPhone OS 3.1
  • Previous by thread: AULab 2.0.1 behavior on quit
  • Next by thread: Bluetooth one way audio with iPhone OS 3.1
  • Index(es):
    • Date
    • Thread