FROM : M. Uli Kusterer
DATE : Wed Apr 06 16:52:10 2005
At 8:55 Uhr -0400 06.04.2005, mail4 wrote:
>Question: if [NSFileManager defaultManager] does not autorelease
>could this be causing the problem?
If I understand you correctly, the answer is "no". NSFileManager is
a singleton, and thus *by definition* will not be released. It may be
lazily created the first time you use it and not claim its memory
until then, but it obviously won't be released until you quit.
If you have such a one-time-leak, that is okay, because it's
intended. OTOH if you get this leak each time you use NSFileManager,
then that sounds like a bug (unless it isn't just the autorelease
pool gaining some items ... those will go away as soon as the current
autorelease pool is released.
Fluctuations in free memory are completely normal.
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
DATE : Wed Apr 06 16:52:10 2005
At 8:55 Uhr -0400 06.04.2005, mail4 wrote:
>Question: if [NSFileManager defaultManager] does not autorelease
>could this be causing the problem?
If I understand you correctly, the answer is "no". NSFileManager is
a singleton, and thus *by definition* will not be released. It may be
lazily created the first time you use it and not claim its memory
until then, but it obviously won't be released until you quit.
If you have such a one-time-leak, that is okay, because it's
intended. OTOH if you get this leak each time you use NSFileManager,
then that sounds like a bug (unless it isn't just the autorelease
pool gaining some items ... those will go away as soon as the current
autorelease pool is released.
Fluctuations in free memory are completely normal.
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
| Related mails | Author | Date |
|---|---|---|
| mail4 | Apr 6, 14:55 | |
| M. Uli Kusterer | Apr 6, 16:52 | |
| j o a r | Apr 6, 17:05 |






Cocoa mail archive

