<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[plot error when closing data structure patch]]></title><description><![CDATA[<p>ok, i've got one more issue with a patch. i use a DS array to build up a kind of toggle strip, which works fine so far, but when i close the patch i get the following erreor messages multiple times (6):<br />
<code>plot: pd-1006_arraystruct: no canvas for this template</code><br />
can someone tell me, why this happens? especially when quitting the patch?<br />
hre's the patch:<br />
<a href="/uploads/files/1582511554434-toggle_array.pd">toggle_array.pd</a><br />
thanks in advance! <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/wink.png" title=";-)" alt=";-)" /></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/12604/plot-error-when-closing-data-structure-patch</link><generator>RSS for Node</generator><lastBuildDate>Sat, 16 May 2026 17:53:04 GMT</lastBuildDate><atom:link href="http://forum.pdpatchrepo.info/topic/12604.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 24 Feb 2020 02:32:58 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to plot error when closing data structure patch on Mon, 24 Feb 2020 02:32:58 GMT]]></title><description><![CDATA[<p>ok, i've got one more issue with a patch. i use a DS array to build up a kind of toggle strip, which works fine so far, but when i close the patch i get the following erreor messages multiple times (6):<br />
<code>plot: pd-1006_arraystruct: no canvas for this template</code><br />
can someone tell me, why this happens? especially when quitting the patch?<br />
hre's the patch:<br />
<a href="/uploads/files/1582511554434-toggle_array.pd">toggle_array.pd</a><br />
thanks in advance! <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/wink.png" title=";-)" alt=";-)" /></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/12604/plot-error-when-closing-data-structure-patch</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/12604/plot-error-when-closing-data-structure-patch</guid><dc:creator><![CDATA[toxonic]]></dc:creator><pubDate>Mon, 24 Feb 2020 02:32:58 GMT</pubDate></item><item><title><![CDATA[Reply to plot error when closing data structure patch on Mon, 24 Feb 2020 03:17:45 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/toxonic">@toxonic</a> The reason for this error is the relatively stubborn way Pd renders its graphics. Pd uses Tcl/Tk for its GUI. Every frame, it renders all objects. So when you close a patch, it will one by one destroy every object. In between it will still try to render all remaining objects. The order in which objects are destroyed is dependent on the order they where created. So when the subpatch where the ds data is stored is destroyed before the [plot], this error occurs.</p>
<p>The solution is to change the order of creation by using cut and paste. Remember to clear the subpatch before messing with the [struct] object, or Pd will hang.</p>
<p>Anyhow, here i just used cut &amp; paste on some subpatches and the error disapeared: <a href="/uploads/files/1582514167749-toggle_array.pd">toggle_array.pd</a> <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/wink.png" title=";)" alt=";)" /></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/12604/plot-error-when-closing-data-structure-patch/2</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/12604/plot-error-when-closing-data-structure-patch/2</guid><dc:creator><![CDATA[ingox]]></dc:creator><pubDate>Mon, 24 Feb 2020 03:17:45 GMT</pubDate></item><item><title><![CDATA[Reply to plot error when closing data structure patch on Mon, 24 Feb 2020 09:21:27 GMT]]></title><description><![CDATA[<p>amazing - again, you made my day! <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/wink.png" title=";-)" alt=";-)" /> i didn't even think of that fact...  thanks anyway! <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/%2B1.png" title="+1" alt=":+1:" /></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/12604/plot-error-when-closing-data-structure-patch/3</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/12604/plot-error-when-closing-data-structure-patch/3</guid><dc:creator><![CDATA[toxonic]]></dc:creator><pubDate>Mon, 24 Feb 2020 09:21:27 GMT</pubDate></item></channel></rss>