Hi list,
after solving the 'compiler problem' I finally started to write my first external for pd. I run pd 0.34-3 on Win98 and have the following problem.
When I try to write audio data (as short int's) into an array that is initialised with 'x->x_buffer = (short *) getzbytes(65536);', pd crashes and reports:
Consistency check failed: glist_getcanvas
or sometimes
Consistency check failed: glist_findrtext
Can anybody tell me, what this means?
best regards
Olaf
When I try to write audio data (as short int's) into an array that is initialised with 'x->x_buffer = (short *) getzbytes(65536);', pd crashes
hi,
I think the correct allocation is getzbytes( 65536*sizeof(short) ).
Otherwise, you might write in some pd's internal zones and behaviour becomes undefined. You might have many weird errors after that.
cheers,
Yves/
PS : getzbytes is obsolete, you should use getbytes ( which is exactly the same )/