debugging a dealloc crash
debugging a dealloc crash
- Subject: debugging a dealloc crash
- From: Mark Dawson <email@hidden>
- Date: Tue, 15 Mar 2005 21:41:17 -0800
I made some code changes that obviously have not found their way to
every place they should have, as my code now crashes.
What's happening is that when I close my document, my
NSWindowController subclass gets called for a dealloc (correctly, I
assume). However, my view within the scroller THEN gets called with a
drawRect (the document has already disappeared). My drawRect routine
references an IOOutlet that points to the NSWindowController subclass.
However, since it has been deallocated, referencing it crashes.
Running a "pre-improved" version of my app, the drawRect routine is NOT
called on document closing. So something I've done has now caused it
to be called.
Can anyone give any pointers as to what might be happening or how to
debug this crash?
Thanks!
mark
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden