<div dir="ltr">Thanks Liam for your help,<div><br></div><div>I revised the patch and it was actually an error caused by the abstractions trying to read the "buffer" before it actually loaded, I solved this by setting a short delay after the [init]</div><div><br></div><div>cheers <br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 29, 2016 at 7:17 AM, José Rafael Subía Valdez <span dir="ltr"><<a href="mailto:jsubiavaldez@gmail.com" target="_blank">jsubiavaldez@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thanks Liam,<div><br></div><div>the read instruction is in [GUI-creator]. I thought the other object need the name as a pointer, the creation arguments are written as they should be, other wise the patch wouldn't work at all, $2  inside is because it comes from the second argument written in the [cr_gui] abstraction.</div><div><br></div><div>thanks for your help, I will continue to revise it, but if anyone else has an idea why this is happening I am all ears,</div><div><br></div><div>cheers</div><div><br></div><div><br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 29, 2016 at 6:51 AM, Liam Goodacre <span dir="ltr"><<a href="mailto:liamg_uw@hotmail.com" target="_blank">liamg_uw@hotmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div dir="ltr">
<div style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif">
<p>The problem is coming from the "read_number_memory" subpatches, where the [text search] and [text set] objects are not linked to a text buffer. I can't tell exactly why this is. Could it be because the creation arguments are confused? ($1 in the [text define]
 object, $2 in the abstraction).</p>
<p><br>
</p>
<p>If not, perhaps you are misunderstanding how the text objects work. The name given in [text define] defines a buffer that other text objects can reference, but it does not point to a specific text file on your hard drive. To open a file from the hard disk,
 you must send a "read" message to text define. I don't see such a message in your patch, so perhaps this is the problem.<br>
</p>
<br>
<br>
<div style="color:rgb(0,0,0)">
<hr style="display:inline-block;width:98%">
<div dir="ltr"><font style="font-size:11pt" color="#000000" face="Calibri, sans-serif"><b>From:</b> Pd-list <<a href="mailto:pd-list-bounces@lists.iem.at" target="_blank">pd-list-bounces@lists.iem.at</a>> on behalf of José Rafael Subía Valdez <<a href="mailto:jsubiavaldez@gmail.com" target="_blank">jsubiavaldez@gmail.com</a>><br>
<b>Sent:</b> 28 September 2016 20:59<br>
<b>To:</b> pd-list<br>
<b>Subject:</b> [PD] [text] question</font>
<div> </div>
</div>
<div>
<div dir="ltr"><div><div>Hello list
<div><br>
</div>
<div>quick question about the [text] object, I have a patch that reads and records a text file. I use various [text] objects in the patch that access the same file, these are placed in abstractions. I have no problems when running the patch and the program
 works, but when I close the patch I get this error, and I can't figure out why.</div>
<div><font color="#ff0000"><br>
</font></div>
<div><font color="#ff0000">text: couldn't find text buffer 'test-GUI-amount.txt'</font><br>
</div>
<div><br>
</div>
<div>any ideas?<br>
</div>
<div><br>
</div>
<div>last part of a 4-week project. So maybe I need a pair of fresh eyes.</div>
<div><br>
</div>
<div>Basically, it is a preset system that I am programming, I keep track of how many objects have been created, I am recording this number into a text file. And I am using a single text file for every GUI object that I am using. I don't understand why the
 error only comes up when closing the patch or deleting the module that contains the objects. The program works as I want it, but I would really wanna get rid of this error.</div>
</div></div><div><div><div>
<div><br>
</div>
<div>attached is the file if someone can take a look, I deeply appreciate it. To reproduce the error just open and close the patch. The [text] object is in the</div>
<div>[GUI-creator] module and in the [pd read_number_memory] subpatch in the [cr_gui] abstraction</div>
<div><br>
</div>
<div>what is clear is that the error comes from the use of [text] in the [cr_gui] as I have 8 errors and I use 8 instances of this abstraction</div>
<div><br>
</div>
<div>cheers</div>
<div><br>
</div>
-- <br>
</div></div><div>
<div dir="ltr">José Rafael Subía Valdez<br>
<div><a href="http://www.jrsv.net" target="_blank">www.jrsv.net</a>
<div style="margin-bottom:20px;overflow:auto;width:100%;text-indent:0px">
<table style="width:90%;background-color:rgb(255,255,255);overflow:auto;padding-top:20px;padding-bottom:20px;margin-top:20px;border-top:1px dotted rgb(200,200,200);border-bottom:1px dotted rgb(200,200,200)" cellspacing="0">
<tbody>
<tr style="border-spacing:0px" valign="top">
<td style="vertical-align:top;padding:0px;display:table-cell" colspan="2">
<div></div>
<div style="color:rgb(0,120,215);font-weight:400;font-size:21px;font-family:"wf_segoe-ui_light","Segoe UI Light","Segoe WP Light","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif;line-height:21px">
<a style="text-decoration:none" href="http://www.jrsv.net/" target="_blank">JRSV | Official website</a></div>
<div style="margin:10px 0px 16px;color:rgb(102,102,102);font-weight:400;font-family:"wf_segoe-ui_normal","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif;font-size:14px;line-height:14px">
<a href="http://www.jrsv.net" target="_blank">www.jrsv.net</a></div>
<div style="display:block;color:rgb(102,102,102);font-weight:400;font-family:"wf_segoe-ui_normal","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif;font-size:14px;line-height:20px;max-height:100px;overflow:hidden">
Home. Welcome to my website, here you will find information regarding my work in different fields of research and production. Find out about my projects that involve ...</div>
</td>
</tr>
</tbody>
</table>
</div>
<br>
<div><br>
</div>
<div><br>
<div><br>
<font size="4" face="'lucida grande', tahoma, verdana, arial, sans-serif"><span style="font-size:14px;line-height:17px"><br>
</span></font></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>

</blockquote></div><br><br clear="all"><div><br></div>-- <br><div data-smartmail="gmail_signature"><div dir="ltr">José Rafael Subía Valdez<br><div><a href="http://www.jrsv.net" target="_blank">www.jrsv.net</a><br><div><br></div><div><br><div><br><font face="'lucida grande', tahoma, verdana, arial, sans-serif" size="4"><span style="font-size:14px;line-height:17px"><br></span></font></div></div></div></div></div>
</div>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">José Rafael Subía Valdez<br><div><a href="http://www.jrsv.net" target="_blank">www.jrsv.net</a><br><div><br></div><div><br><div><br><font face="'lucida grande', tahoma, verdana, arial, sans-serif" size="4"><span style="font-size:14px;line-height:17px"><br></span></font></div></div></div></div></div>
</div></div></div>