• 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
Re: Weird crash when quitting application or... who put it in the autorelease pool?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Weird crash when quitting application or... who put it in the autorelease pool?


  • Subject: Re: Weird crash when quitting application or... who put it in the autorelease pool?
  • From: Uli Kusterer <email@hidden>
  • Date: Mon, 26 Jun 2006 12:23:03 +0200

Am 22.06.2006 um 23:10 schrieb Robert Clair:
I have a transparent overlay window object. It is owed by the view beneath it, created when the view starts and released in the view's dealloc routine. Nothing I do ever calls autorelease on it. But when I push the keys in rapid succession without releasing the CMD key something in the system puts it in the autorelease pool:

You're aware that adding a view to a window and removing it cause retain/release calls on that view, right? So, strictly spoken, you shouldn't have to retain/release your view. That said, it should work, unless you're somehow releasing your view twice by accident and it only shows up later when the owning view balances its retain call when getting rid of your view. Since you already used up that retain, it'll send the message to an already-disposed object and ... bang.


Now, the art of debugging comes in when finding out *where* you're releasing the view too often.

Cheers,
-- M. Uli Kusterer
http://www.zathras.de


_______________________________________________ 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
References: 
 >Weird crash when quitting application or... who put it in the autorelease pool? (From: Robert Clair <email@hidden>)

  • Prev by Date: Re: Nib files in memory
  • Next by Date: Re: project pointers and transition advice
  • Previous by thread: Weird crash when quitting application or... who put it in the autorelease pool?
  • Next by thread: (no subject)
  • Index(es):
    • Date
    • Thread