• 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
dealloc of App Contoller never gets called
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

dealloc of App Contoller never gets called


  • Subject: dealloc of App Contoller never gets called
  • From: Michael Monscheuer <email@hidden>
  • Date: Fri, 21 Nov 2003 18:27:45 +0100

I am using some kind of application controller to receive messages of menu items of applications' main menu and store some private instance variables within app controller, which i tried to release within -dealloc.
Nothing special so far.

I found a surprisingly behaviour: As application controller is instanciated using the NIB file stuff, i did not expect any problem.
But: -dealloc of application controller *never* gets called!
Because of this, my application may now have a memory leak, cause app controllers' private stuff never gets released.

OK, I could release private stuff within a delegate method (e.g. applicationShouldTerminate:). But I am wondering why dealloc never gets called...

Bug or Feature? ;-)

MiMo
--
=======================================================
And refashioning the fashioned
lest it stiffen into iron
is work of endless vital activity.
[Goethe]

mailto:email@hidden
mailto:email@hidden

All about CALAMUS DTP suite:
http://www.calamus.net

=======================================================
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: dealloc of App Contoller never gets called
      • From: j o a r <email@hidden>
  • Prev by Date: Re: Problem Ejecting Discs
  • Next by Date: Re: tableView column ellipses
  • Previous by thread: Re: Problem Ejecting Discs
  • Next by thread: Re: dealloc of App Contoller never gets called
  • Index(es):
    • Date
    • Thread