[PD] outlet with list of int, symbol segfaulting
Mathieu Bouchard
matju at artengine.ca
Mon Apr 24 01:09:08 CEST 2006
On Sun, 23 Apr 2006, David Merrill wrote:
> static void output_inputpath(t_input_noticer *x, int idx, char *path)
> {
> t_atom t[2];
> SETFLOAT(&(t[0]),idx);
> SETSYMBOL(&(t[1]),gensym(path));
> // THE FOLLOWING LINE SEGFAULTS PD
> outlet_list(x->notify_out, &s_list, 2, t);
> }
check that x is valid, and that notify_out is properly initialized to a
t_outlet.
You may want to use the Valgrind debugger which can tell you things about
bad use of malloc() and free() and can also report uninitialized values.
_ _ __ ___ _____ ________ _____________ _____________________ ...
| Mathieu Bouchard - tél:+1.514.383.3801 - http://artengine.ca/matju
| Freelance Digital Arts Engineer, Montréal QC Canada
More information about the Pd-list
mailing list