Re: more AU info and plugins (should be "I need to share data")
Re: more AU info and plugins (should be "I need to share data")
- Subject: Re: more AU info and plugins (should be "I need to share data")
- From: Glenn Olander <email@hidden>
- Date: Mon, 23 Jun 2003 06:33:45 -0700
Here's how I handle that: when it is destroyed, the
GUI component dtor reports that fact to the DSP component and the
DSP component then disposes of the pointer and no longer uses
it.
Glenn
Philippe Wicker wrote:
That sounds like a definitive answer to my question about properties.
So, where did that guideline Marc mentioned about not passing pointers
between the DSP and GUI components come from? It is starting to look
like an urban myth :-).
I think Marc "guideline" was primarily about avoiding to exchange pointers
> on the C++ objects which are embedded in the components (AU and/or
GUI).
> In that respect, this "guideline" do make sense because, as he said,
> you (the component developer) don't master the life cycle of these
objects. The host can
> very well maintain an instance of an AU for the whole session while
the view may
> be created/destroyed at will leaving your AU component instance with
a dangling pointer
> and very likely a crash of the whole app (host and components) at the
end.
_______________________________________________
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.