help-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Double free invisible due to autorelease pool


From: David Ayers
Subject: Re: Double free invisible due to autorelease pool
Date: Thu, 03 Feb 2005 11:23:07 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.3) Gecko/20040910

Sébastien Pierre wrote:

Hi Richard, Adam,

First, thanks a lot for your answers !

Le 2 févr. 05, à 22:19, Adam Fedor a écrit :

I am currently in big trouble trying to find the cause of a "double free" which occurs when releasing an autorelease pool. Has anybody any idea to know how to identify where an autoreleased objects was freed (released, I guess) before being autoreleases ?


[NSObject+enableDoubleReleaseCheck:] might well help you.


This helped me to see that there is actually a double release check, but I would like the debugger to break on the raising of the "NSGenericException". On OSX, there is the "NSHangOnUncaughtException = YES;" provided by NSDebug, but it does not seem to be on GNUstep :/

Is there any workaround ?


Couldn't you simply set a breakpoint on -raise? And if you really only want it in NSGenericException, then hack -raise to test the name and call a dummy function for which you have set breakpoint on a match.

Cheers,
David





reply via email to

[Prev in Thread] Current Thread [Next in Thread]