Re: [PD-dev] deadly leak

2011-12-14 Thread Ivica Ico Bukvic
OK, So, I reenabled the workaround I had used before in pd-l2ork and all is well again. But it still does use a workaround and an ugly one at that. Yet, that is the *only* way I can see fixing this. The problem is essentially what I had mentioned already cutting and undoing cutting a canvas

[PD-dev] [ pure-data-Bugs-3459480 ] [cartopol~] bug

2011-12-14 Thread SourceForge . net
Bugs item #3459480, was opened at 2011-12-14 08:21 Message generated for change (Tracker Item Submitted) made by nobody You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=478070aid=3459480group_id=55736 Please note that this message will contain a full copy of the

Re: [PD-dev] deadly leak

2011-12-14 Thread Mathieu Bouchard
Le 2011-12-14 à 10:15:00, Ivica Ico Bukvic a écrit : So, the only way I can ensure in pd-l2ork that this never happens is that I enable global variable in canvas_new making sure that pd_new function is aware its next allocation is for a canvas. I also maintain a global single-linked list of

Re: [PD-dev] deadly leak

2011-12-14 Thread Ivica Ico Bukvic
Mathieu Bouchard ma...@artengine.ca wrote: Le 2011-12-14 à 10:15:00, Ivica Ico Bukvic a écrit : So, the only way I can ensure in pd-l2ork that this never happens is that I enable global variable in canvas_new making sure that pd_new function is aware its next allocation is for a canvas. I

Re: [PD-dev] deadly leak

2011-12-14 Thread Mathieu Bouchard
Le 2011-12-14 à 12:49:00, Ivica Ico Bukvic a écrit : So what part of the code specifically binds keyboard and mouse actions to a canvas? Look for the name as it appears in Tcl commands going to Pd. From what it looks like in commands to/from Tcl, you can see that it is a .x%lx

Re: [PD-dev] deadly leak

2011-12-14 Thread Krzysztof Czaja
On 12/15/2011 12:10 AM, Ivica Ico Bukvic wrote: ... Wow! You just helped me finally solve this riddle! Could it be really this simple? In canvas_free() call inside g_canvas.c simply add the following 2 lines: if (x-gl_editor) canvas_destroy_editor(x); I added them right

Re: [PD-dev] deadly leak

2011-12-14 Thread Miller Puckette
Personally, I'm hoping to put band-aids on as many manaifestations of the problem as I can track down (so thanks for this one :) and then re-design the whole editor creation and destruction strategy for 0.44 - it looks like it can never be fully debugged the way it's stet up now! Miller On Thu,