[Drawkit] double free

Uli Kusterer kusterer at gmail.com
Mon Jul 7 10:50:31 PDT 2008


On 07.07.2008, at 19:27, James Maxwell wrote:
> I'm getting a malloc error "double free" when trying to drag guides  
> on my customized guide layer.
> Putting a breakpoint at malloc_error_break shows that the problem is  
> coming from DKToolController's -mouseDragged: method, specifically  
> the [pool drain] at the bottom. Anybody have any wild guesses as to  
> what might be causing this? I know it's pretty much impossible to  
> know without seeing my code, but perhaps there are some obvious  
> things I should check?


  That means you're releasing an object you shouldn't be releasing.  
Either you are calling autorelease, or someone else already called  
autorelease and you're calling release. It just blows up when the  
autorelease pool is drained, as that's the first one trying to release  
the object after you've already released it.

Cheers,
-- Uli Kusterer
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de







More information about the Drawkit mailing list