dealloc of App Contoller never gets called
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.