<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12pt"><div><span>I don't know the particulars, but it's quite  possible you are injecting junk into the middle of a stream of data heading for the gui.&nbsp; I'd guess there is an unterminated message in a sys_vgui call-- i.e., one with a "\\\n", possibly in a loop-- and a matching sys_gui or vgui call with a terminating "\n" at the end.&nbsp; If you put a message to the gui between the two you'll probably screw up that command.&nbsp; If you insert a message with a linebreak in it, then tcl will take the word immediately following the linebreak-- like a "1000" or a "1"-- as a command.&nbsp; Those aren't tcl commands, so it complains.</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color:
 transparent; font-style: normal;"><br><span></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><span>-Jonathan<br></span></div><div style="display: block;" class="yahoo_quoted"> <br> <br> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 12pt;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> On Friday, January 17, 2014 12:38 PM, "Esler,Robert Wadhams" &lt;robert@urbanstew.org&gt; wrote:<br> </font> </div>  <div class="y_msg_container">Greetings,<br><br>&nbsp; I've notice quite a bit of discussion about this error, though none in relation to my current discovery.<br><br>&nbsp; I have a custom external that works great w/o errors in
 Pd-0.45-4 and Pd-extended-42.5, but throws the following error when trying to create it in Pd-extended-43.4.&nbsp; Sometimes GUI hangs on its creation (never completes the drawing of the object), yet Pd can still function normally with other objects.<br><br><br>(Tcl) INVALID COMMAND NAME: invalid command name "1"<br>&nbsp; &nbsp; while executing<br>"1"<br>&nbsp; &nbsp; ("uplevel" body line 1)<br>&nbsp; &nbsp; invoked from within<br>"uplevel #0 $cmds_from_pd"(Tcl) INVALID COMMAND NAME: invalid command name "1000"<br>&nbsp; &nbsp; while executing<br>"1000"<br>&nbsp; &nbsp; ("uplevel" body line 1)<br>&nbsp; &nbsp; invoked from within<br>"uplevel #0 $cmds_from_pd"<br> <br> If I try to open a patch with the custom external sometimes Pd hangs and I have to Quit, but not always.&nbsp; <br><br> I've tracked it down to functions that are calling std::cout via a C++ class.&nbsp; Sometimes I forget to comment these out during debugging.&nbsp; This error doesn't
 throw on the versions I mentioned above except pd-extended-43.4.&nbsp; I'm still investigating the GUI hang issue, it might be thread related b/c I was using C++11 threading library during testing, though none of those functions are ever called in the pd instance.&nbsp;  <br><br> By the way, I'm using Max OS X 10.8.5.&nbsp; <br><br>Not sure if this is helpful to anyone, or why this would be the case.&nbsp; But definitely in the future I will remember to not use the C++ &lt;iostream&gt; in my Pd objects.&nbsp; <br><br>Thanks everyone.<br><br>Rob<br>_______________________________________________<br><a href="" ymailto="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list<br>UNSUBSCRIBE and account-management -&gt; <a href="" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br><br><br></div>  </div> </div>  </div> </div></body></html>