Try this:
if (gensym("code")->s_thing)
pd_symbol(gensym("code")->s_thing, gensym("content"));
cheers
Miller
> _______________________________________________
On Mon, May 11, 2015 at 07:58:19PM +0100, Alexandre Clément wrote:
> Hello all
> First ever mail to this list, so bear with me if I trample on any
> netiquette rules.
>
> So, in short, I'm working on a simple external, taking a float and
> converting it to int, then to hex (no biggie) before sending it out via a
> "send" cordless message.
>
> I'm using:
>
> pd_symbol(gensym("code")->s_thing, gensym("content"));
>
> Everything works fine and dandy IF i have a receive object in the patch
> waiting for that "code" target.
> If, however, I remove it or have no receiver at all, PD hangs and crashes.
>
> Since this is supposed to be a part of a libPD embedded mobile app, its my
> only means of communicating to the wrapper-app...
> FYI: developing in C, on windows 7 with Eclipse Luna.
> These crashes are happening in "regular" desktop PD, so not a libPD issue.
> Tried using GDB by attaching it to PD, but can't really get any useful info
> from the debug messages shown in the debug perspective in Eclipse.
>
>
> Any insight on the matter would be greatly appreciated!
>
> Cheers,
> Alex
> Pd-dev mailing list
> Pd-dev@lists.iem.at
> http://lists.puredata.info/listinfo/pd-dev