Re: Intermittent crashes in updateTrackingArea from delegate
Jack Nutting <[email protected]>
| Newsgroups | gmane.comp.macosx.devel |
|---|---|
| Message-ID | <[email protected]> |
On Fri, Jan 29, 2010 at 3:03 PM, Christiaan Hofman <[email protected]> wrote: > 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. Yeah, nilling out any delegate pointers to your controller when the controller deallocs is always the right thing to do. My guess is that the crash is occurring some time after you've closed the window, in a view that's perhaps not even on-screen anymore. Maybe your controller isn't releasing the window? -- // jack // http://www.nuthole.com