<div dir="ltr"><div>Hi everybody,</div><div>I have a strange bug only on Linux. </div><div>When I create a t_symbol with @ inside it and try to add it to a binbuf PD crashes .</div><div><br></div><div>dummy code that crashes:</div>
<div><br></div>
<div>t_gotfn mpreset = zgetfn(&y->g_pd, s_preset);</div><div>SETSYMBOL(av, gensym("@zaza"));</div><div>binbuf_add(b, 1, av);</div><div>mpreset(y, b); (it seems to crash here)</div><div><br></div><div>dummy code that works:</div>
<div><br></div>
<div>t_gotfn mpreset = zgetfn(&y->g_pd, s_preset);</div><div>SETSYMBOL(av, gensym("zaza"));</div><div>binbuf_add(b, 1, av);</div><div>mpreset(y, b);</div><div><br></div><div>I don't know if it's a linking problem or if I do something wrong in the code. Any help will be welcome !</div>
<div><br></div><div>Here the link of the full project : <a href="https://github.com/CICM/CicmWrapper">https://github.com/CICM/CicmWrapper</a></div><div>In the CreamLibrary folder, you can use the codeblock project "c.library" if you want to try it. And the bug is in the function "preset_store" of the file "c.preset.cpp" in the chocolate subfolder. </div>
<div><br></div><div>Cheers</div></div>