• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
debugging a dealloc crash
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: debugging a dealloc crash
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: Which objects in nib are placeholders?
  • Next by Date: Re: Odd NSData initWithContentsOfURL: issue
  • Previous by thread: Which objects in nib are placeholders?
  • Next by thread: Re: debugging a dealloc crash
  • Index(es):
    • Date
    • Thread