• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: more AU info and plugins (should be "I need to share data")
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.
References: 
 >Re: more AU info and plugins (should be "I need to share data") (From: Philippe Wicker <email@hidden>)

  • Prev by Date: Re: more AU info and plugins (should be "I need to share data")
  • Next by Date: Re: more AU info and plugins (should be "I need to share data")
  • Previous by thread: Re: more AU info and plugins (should be "I need to share data")
  • Next by thread: Re: more AU info and plugins (should be "I need to share data")
  • Index(es):
    • Date
    • Thread