Hi, Is it still necessary to store every inlet pointer after the first in the class data structure? it seems like multiple inlets are instead being handled as linked lists in the t_object and are automatically freed by pd_free, but the tutorial still says to allocate and deallocate them manually. Additionally I can't find a single instance of inlet_free being used in pd vanilla in a patchable object destructor.
Thanks in advance
-Sebastian
Hi Sebastian,
You don't have to keep track of inlets, and the only reason tmo keep track of outlets is to be able to send messages to them. You're right that the inlets and outlets are freed automatically when the object is freed so you can just forget about them.
cheers Miller
On Tue, Oct 28, 2014 at 03:49:52PM -0400, Seb Shader via Pd-dev wrote:
Hi, Is it still necessary to store every inlet pointer after the first in the class data structure? it seems like multiple inlets are instead being handled as linked lists in the t_object and are automatically freed by pd_free, but the tutorial still says to allocate and deallocate them manually. Additionally I can't find a single instance of inlet_free being used in pd vanilla in a patchable object destructor.
Thanks in advance
-Sebastian
Pd-dev mailing list Pd-dev@lists.iem.at http://lists.puredata.info/listinfo/pd-dev
Am 28. Oktober 2014 20:49:52 MEZ, schrieb Seb Shader via Pd-dev pd-dev@lists.iem.at: [...]
but the tutorial still says to allocate and deallocate them manually.
If with "the tutorial" you are referring to my "HOWTO write pd externals", i can tell you that it hasn't seen any significant update since >10 years.
Most of it is still uptodate though. Anyhow please report a bug at bugs.puredata.info
mfg.ugd.fhj IOhannes
-- Sent from my pdp-11
OK Here it is https://sourceforge.net/p/pure-data/bugs/1166/
Thanks for all of the work put into it btw
-----Original Message----- From: IOhannes zmölnig zmoelnig@iem.at To: sebfumaster sebfumaster@aol.com; Seb Shader via Pd-dev pd-dev@lists.iem.at; pd-dev pd-dev@lists.iem.at Sent: Wed, Oct 29, 2014 5:24 am Subject: Re: [PD-dev] Clarification on linked lists of inlets and outlets
Am 28. Oktober 2014 20:49:52 MEZ, schrieb Seb Shader via Pd-dev pd-dev@lists.iem.at: [...]
but the tutorial still says to allocate and deallocate them manually.
If with "the tutorial" you are referring to my "HOWTO write pd externals", i can tell you that it hasn't seen any significant update since >10 years.
Most of it is still uptodate though. Anyhow please report a bug at bugs.puredata.info
mfg.ugd.fhj IOhannes
-- Sent from my pdp-11