Re: Intermittent crashes in updateTrackingArea from delegate

Christiaan Hofman <[email protected]>
Newsgroups gmane.comp.macosx.devel
Message-ID <[email protected]>
On Jan 29, 2010, at 14:21, Jack Nutting wrote:

> On Fri, Jan 29, 2010 at 2:01 PM, Christiaan Hofman <[email protected]> wrote:
>> The crasher takes place in the -respondsToSelector: line, which is called from -updateTrackingAreas. It's the usual and useless EXC_BAD_ACCESS. It seems that the delegate is not valid, I get it when I call anything on the delegate, for instance when I replace the whole rebuildTrackingAreas implementation with something like NSLog(@"%@", [self delegate]);. However, the debugger does not say the _delegate is out of scope, though it only gives an "isa" in its outline.
> 
> 
> Seems like your delegate object has been released.  Have you tried
> running with NSZombieEnabled?
> 
>  http://www.cocoadev.com/index.pl?NSZombieEnabled
> 
> -- 
> // jack
> // http://www.nuthole.com
> 

Apparently you were right, with NSZombieEnabled I get a useful log. Thanks a lot! I still find it strange though that this does not lead to serious problems elsewhere. Anyway, I will be safe now and set the delegates and datasources to nil in dealloc.

Christiaan
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.