<div dir="ltr">Perfect!<br><br>Just to make sure I understand what's going on, the code was trying to access a non-existent pointer to the symbol, right? That condition just verifies if the symbol corresponding to "code" has been created and therefore exists in the symbol table, before trying to adress it.<div><br></div><div>So in other words, would it be possible (for example) to check from one external if a given symbol/object has been created in another external (check its existence in the symbol table)?</div><div><br></div><div>Thanks a lot for the help!</div><div><br></div><div>Cheers,</div><div>Alex</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 12 May 2015 at 00:07, Miller Puckette <span dir="ltr"><<a href="mailto:msp@ucsd.edu" target="_blank">msp@ucsd.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Try this:<br>
<br>
if (gensym("code")->s_thing)<br>
<span class="">        pd_symbol(gensym("code")->s_thing, gensym("content"));<br>
<br>
</span>cheers<br>
Miller<br>
<div><div class="h5"><br>
On Mon, May 11, 2015 at 07:58:19PM +0100, Alexandre Clément wrote:<br>
> Hello all<br>
> First ever mail to this list, so bear with me if I trample on any<br>
> netiquette rules.<br>
><br>
> So, in short, I'm working on a simple external, taking a float and<br>
> converting it to int, then to hex (no biggie) before sending it out via a<br>
> "send" cordless message.<br>
><br>
> I'm using:<br>
><br>
> pd_symbol(gensym("code")->s_thing, gensym("content"));<br>
><br>
> Everything works fine and dandy IF i have a receive object in the patch<br>
> waiting for that "code" target.<br>
> If, however, I remove it or have no receiver at all, PD hangs and crashes.<br>
><br>
> Since this is supposed to be a part of a libPD embedded mobile app, its my<br>
> only means of communicating to the wrapper-app...<br>
> FYI: developing in C, on windows 7 with Eclipse Luna.<br>
> These crashes are happening in "regular" desktop PD, so not a libPD issue.<br>
> Tried using GDB by attaching it to PD, but can't really get any useful info<br>
> from the debug messages shown in the debug perspective in Eclipse.<br>
><br>
><br>
> Any insight on the matter would be greatly appreciated!<br>
><br>
> Cheers,<br>
> Alex<br>
<br>
</div></div>> _______________________________________________<br>
> Pd-dev mailing list<br>
> <a href="mailto:Pd-dev@lists.iem.at">Pd-dev@lists.iem.at</a><br>
> <a href="http://lists.puredata.info/listinfo/pd-dev" target="_blank">http://lists.puredata.info/listinfo/pd-dev</a><br>
<br>
</blockquote></div><br></div>