• 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
AU - avoiding crash when unregistering control class
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AU - avoiding crash when unregistering control class


  • Subject: AU - avoiding crash when unregistering control class
  • From: Marc Poirier <email@hidden>
  • Date: Wed, 8 Jan 2003 03:27:30 +0100 (CET)

This isn't really AU or CoreAudio-specific, but since this topic has come
up before, I figured I'd share this tip. Folks who have been working on
AU GUIs probably remember how unregistering an HI control class caused
crashes until the OS X 10.2.3 update, which fixed that bug. For those of
you maybe not as familiar with the Mac toolbox APIs, here's the way to
check whether it's safe to unregister your HI control class:

long systemVersion = 0;
if ( (Gestalt(gestaltSystemVersion, &systemVersion) == noErr) &&
((systemVersion & 0xFFFF) >= 0x1023) )
UnregisterToolboxObjectClass( _yourControlClass_ );


Hope that's useful to someone,
Marc
_______________________________________________
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.

  • Prev by Date: Re: Sound Output Components for OS X???
  • Next by Date: Re: AU - avoiding crash when unregistering control class
  • Previous by thread: Re: How to retrieve the internal name of a DLS/SF2 file?
  • Next by thread: Re: AU - avoiding crash when unregistering control class
  • Index(es):
    • Date
    • Thread