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

I'm pretty sure the delegate has not been released, otherwise I would see much worse crashers much earlier. It's the main window controller of the document that owns the nib. If that were released, I would also get the crashes if I would never even call this methods, which is most definitely not the case.

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.