Re: Premature _NSAutoreleaseNoPool() warnings -And more
Re: Premature _NSAutoreleaseNoPool() warnings -And more
- Subject: Re: Premature _NSAutoreleaseNoPool() warnings -And more
- From: email@hidden
- Date: Wed, 3 Apr 2002 10:43:29 EST
I found that my problem was in instantiating static global variables in
the source file of the class, so that was occuring outside of any
NSAutoreleasePool.
But this leads to another question.
Is it necessary to release (autorelease) objects that are in the main()
function if they are to span the duration of the application? They are going
to be destroyed upon exit of the application anyhow, so is it necessary to
create a NSAutorelease pool for them or release them?
_______________________________________________
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.