[PD-dev] realloc()

Mathieu Bouchard matju at artengine.ca
Wed Mar 8 04:01:27 CET 2006


On Tue, 7 Mar 2006, Alexandre Quessy wrote:

> I am trying to use realloc() to manipulate strings. I get the following
> PD error when I try to make a string about 64 chars long.
> *** glibc detected *** realloc(): invalid next size: 0x0830df68 ***
> Does it mean that PD only allows me to use that much memory, according
> to the size of my struct or a little more ? I hope not.

No, it means that you confused your args and so you're passing a pointer 
as the size argument! I say that because 0x0830df68 looks like a heap 
address, that is, the result of a malloc().

 _ _ __ ___ _____ ________ _____________ _____________________ ...
| 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-dev mailing list