AU - avoiding crash when unregistering control class
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.