Hi all,<br><br>please anyone experienced with pd internals could give a quick look to the attached external to help me get it working? There is a makefile there and a simple test patch. The external is as simple as it can be, having just a label and a border box. There is some debugging stuff here and there, mainly calls to sys_vgui are wrapped by the macro sys_vguid which prints the tk command to stdout before delegating to sys_vgui. The object is initialized fine, but the first command passed to tk hangs pd. Maybe I&#39;m missing some compilation flags (the makefile works fine for externals without custom gui). To test it just change PD_INC in the makefile to point to pd source directory and run make, this will build the library and invoke pd passing it the test patch. I&#39;m compiling against 
pd-0.40-2. If you could give me some hint on pd debugging or to point me to the error I would be very thankful.<br><br>The debugging output I get is:<br><br>carlos@monad:~/dev/sound/pd-ext$ make<br>pd -lib ext test-ext.pd
<br>args accepted&nbsp;&nbsp;&nbsp; &lt;- arguments to the object are fine<br>ext_draw&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;- draw rutine is called (with IEM_GUI_DRAW_MODE_NEW)<br>ext_draw_new&nbsp;&nbsp; &lt;- draw_new rutine is called <br>.x70b470.c create rectangle 59 101 69 111 -fill #fcfcfc -tags .x70b470.c.base
<br><br>and here pd gets stuck.<br><br>TIA<br>Cheers,<br>Carlos<br><br><div><span class="gmail_quote">On 6/30/07, <b class="gmail_sendername">Frank Barknecht</b> &lt;<a href="mailto:fbar@footils.org">fbar@footils.org</a>&gt; wrote:
</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hallo,<br>Carlos Pita hat gesagt: // Carlos Pita wrote:<br><br>&gt; I&#39;ve written a tiny external with a custom gui following g_canvas and
<br>&gt; g_bang. But I don&#39;t know how to create a new object of this class. Should I<br>&gt; add a menu entry? How can I do this? Or can my object be created without<br>&gt; adding menu entries and or shortcuts?<br><br>
Yes, by typing. It&#39;s also possible for inlcuded guis: Try objects<br>named &quot;bng&quot;, &quot;tgl&quot;, &quot;vsl&quot; etc.<br><br>Ciao<br>--<br> Frank Barknecht&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; _ ______footils.org_ __goto10.org__
<br><br>_______________________________________________<br><a href="mailto:PD-list@iem.at">PD-list@iem.at</a> mailing list<br>UNSUBSCRIBE and account-management -&gt; <a href="http://lists.puredata.info/listinfo/pd-list">
http://lists.puredata.info/listinfo/pd-list</a><br></blockquote></div><br>