Re: Wrapping VSTGUI for Dummies
Re: Wrapping VSTGUI for Dummies
- Subject: Re: Wrapping VSTGUI for Dummies
- From: Chris Reed <email@hidden>
- Date: Mon, 1 Mar 2004 19:47:07 -0600
This bug has been around as long as the VST2AU code has existed. I
first saw it over a year ago. (If you search the archives, I believe I
sent a note about it to the list way back then.)
I know that some of the original users of VST2AU were aware of the bug,
and fixed it in at least their own code. And I'm pretty sure that fix
made it back into the current VST2AU distribution.
So you should really ask the AU developer to update to the latest
VST2AU. I wouldn't bother trying to work around the problem.
-chris
On Mar 1, 2004, at 11:32 AM, Jeremy Sagan wrote:
>
On Monday, March 1, 2004, at 04:43 AM, Jim Wintermyre wrote:
>
>
>> I have a couple of AU's that crash in VST->AU wrapper's
>
>> IdleProc(EventLoopTimerRef tTimer, void *pUser) after the component
>
>> has
>
>> been closed. Is it possible that CVST2AUView::~CVST2AUView(void) is
>
>> not
>
>> being called? Where does this deconstructor get called? Does anyone
>
>> have any idea what would cause this?
>
>
>
> I had a similar problem... I'm not using the same code but it might be
>
> similar in your case. It looks like some hosts close the plugin's
>
> window without actually destroying the AU view.
>
>
My host does close the component to the AU View and then the AU itself.
>
It is only after the plug is closed, when the host looks at the next
>
event using waitnextevent the plug-in crashes because its event timer
>
gets called. It is not surprising that the plug-in crashes because it
>
is already completely closed. It should have called its deconstructor,
>
removing the timer, I assume when close component is called.
>
>
Jeremy
>
>
> For example, this happens in DP when you switch screensets. In our
>
> case our idle proc was calling something in the AU view if it existed,
>
> and that routine then called some routines that assumed the window
>
> still existed which caused a crash. I had to listen for the
>
> kEventWindowClosed carbon event, and set a flag in that case
>
> indicating that it's unsafe to call the AU view's idle routine.
>
>
>
> Jim
>
> _______________________________________________
>
> 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.
>
_______________________________________________
>
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.
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
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.