[PD-dev] Object crashes when trying to write to its outlet
Christof Ressi
info at christofressi.com
Sat Sep 23 10:39:02 CEST 2023
> So you're saying that I only need to do the initial allocation, like
> this:
>
> `x->x_in = (t_sample **)getbytes(ninlets * sizeof(t_sample *));`
>
> and not try to allocate `t_sample *` bytes in the for loop? I did try
> this, but again the object is crushing.
Yes, because "x_in" and "x_out" are supposed to hold the signal vectors
("s_vecf") of the inlets and outlets, which you would assign in the
"dsp" method.
Christof
More information about the Pd-dev
mailing list