plugin~ crashes on free

Miller Puckette mpuckett at man104-1.UCSD.Edu
Tue Dec 5 18:33:25 CET 2000


Hi all,

One thing this might be: in your "free" callback you shouldn't call
pd_free -- it's the other way around, pd_free() calls your "freeing"
function before it deletes the object.

On Tue, Dec 05, 2000 at 03:51:17PM +0100, Guenter Geiger wrote:
> Andrew Archibald writes:
>  > Hi,
>  > 
>  > I am attempting to use the plugin~ object to load LLADSPA plugins.
>  > Unfortunately, it crashes every time PD attempts too free it.  Through
>  > a suitable application of printfs, it seems each object gets the
>  > "free" function (plugin_tilde_free) called twice.  Naturally, this
>  > causes a crash.  
>  > 
>  > Is there some documentation on the PD externals interface?  All I have
>  > found are some examples, which do not allow me to determine why a free
>  > function might get called on the same object more than once...
> 
> sounds funny after all, programming externals is sometimes tricky,
> because the compiler doesn't tell you that much about mistakes you
> made.
> Especially if you use dynamic number of signal channels and the like.
> Just a guess, I think debugging it may be a little bit of work, 
> but it is definitely worth it.
> 
> Guenter
> 



More information about the Pd-list mailing list