Perfect!
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.
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)?
Thanks a lot for the help!
Cheers, Alex
On 12 May 2015 at 00:07, Miller Puckette msp@ucsd.edu wrote:
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