Re: Wrapping VSTGUI for Dummies
Re: Wrapping VSTGUI for Dummies
- Subject: Re: Wrapping VSTGUI for Dummies
- From: Jeremy Sagan <email@hidden>
- Date: Mon, 1 Mar 2004 12:32:15 -0500
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.