Re: [PD-dev] external crashing when block size changes

2023-09-19 Thread Christof Ressi
what is this "2" supposed to represent? This looks like a mistake to me. The buffer certainly does not have to be twice as large, as it is only used to copy the input. To solve the mystery, you don't allocate the right amount of memory because you forgot about the element type: x->bufbytes

Re: [PD-dev] external crashing when block size changes

2023-09-19 Thread IOhannes m zmölnig
On 9/19/23 20:02, Alexandros Drymonitis wrote:     x->bufbytes = x->chnls*2*sp[0]->s_n; what is this "2" supposed to represent? mfdsar IOhannes OpenPGP_signature Description: OpenPGP digital signature ___ Pd-dev mailing list

[PD-dev] external crashing when block size changes

2023-09-19 Thread Alexandros Drymonitis
I'm trying to create a signal external with a variable number of inlets and outlets. As a test, I have written an object that copies its input to the respective output. When I put the object in a subpatch and use [block~] to change the block size, it crashes. Loading Pd with gdb gives the