Re: AUCarbonViewBase destructor problems
Re: AUCarbonViewBase destructor problems
- Subject: Re: AUCarbonViewBase destructor problems
- From: Jeremy Todd <email@hidden>
- Date: Fri, 9 Jul 2004 13:36:09 -0400
I'm creating an AudioUnit and testing it under Rax v0.3.3b. I'm
inheriting AUCarbonViewBase to create a UI, and when I close the UI's
window then my destructor is invoked (the base destructor is virtual,
as mentioned earlier on this list).
When I have my plugin's UI open and I press command-Q to quit Rax, I
get a "do you want to save changes" dialog. When I press "don't save"
then the window appears to close without invoking AUCarbonViewBase's
destructor. Thus I believe my view component is not closed before the
window is destroyed, violating the AudioUnit spec (?). This leads to
crashes and all sorts of nasty things since my UI needs to be
properly shut down before its window disappears.
Are you seeing the same behavior when you try using the Carbon views
that Apple ships, like the Graphic EQ View? I've tried that view in
Rax v1.0.6, and I'm not seeing these problems.
I've just tried Rax v1.0.6 and this version does not have the same
behavior. So I believe this was a bug in an old version of Rax, and
it's since been fixed.
Thanks,
Jeremy
_______________________________________________
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.