[PD-dev] [PD] Trouble with Memory and Pointers

Frank Barknecht fbar at footils.org
Tue Jun 26 00:37:30 CEST 2007


Hallo,

switching to pd-dev ...

Ed Kelly hat gesagt: // Ed Kelly wrote:

> I'm trying to rewrite some of my externals to be a bit more
> efficient, clear up after themselves and generally work more
> smoothly. I started with maskxor, because I really need this to work
> for the ICMC, and it's not working properly in certain situations.
> 
> So I borrowed some code from zexy/src/drip.c and rewrote it. It
> compiled OK, but crashes PD. Can anyone tell me what is wrong with
> my code, and how to fix it?

No idea how to fix it, but I know where it crashes by compiling with
"-g" and not "strip"ping the external:

[Switching to Thread -1211164992 (LWP 2541)]
0xb73f5bd7 in maskxor_new (s=0x0, fmode=4.89521765e-34) at
maskxor.c:226
226       SETFLOAT(&x->masking.maskr[0], 0);
(gdb) bt
#0  0xb73f5bd7 in maskxor_new (s=0x0, fmode=4.89521765e-34) at
maskxor.c:226
#1  0x0809fcd6 in pd_typedmess ()
#2  0x080b3404 in sys_load_lib ()

Ciao
-- 
 Frank Barknecht                 _ ______footils.org_ __goto10.org__




More information about the Pd-dev mailing list