• 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: [NSFileManager defaultManager] mem leak
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [NSFileManager defaultManager] mem leak


  • Subject: Re: [NSFileManager defaultManager] mem leak
  • From: "M. Uli Kusterer" <email@hidden>
  • Date: Wed, 6 Apr 2005 16:52:10 +0200

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
_______________________________________________
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


  • Follow-Ups:
    • Re: [NSFileManager defaultManager] mem leak
      • From: j o a r <email@hidden>
References: 
 >[NSFileManager defaultManager] mem leak (From: mail4 <email@hidden>)

  • Prev by Date: Re: Undo manager
  • Next by Date: Re: Getting changes in model (NSObjectController, bindings)
  • Previous by thread: [NSFileManager defaultManager] mem leak
  • Next by thread: Re: [NSFileManager defaultManager] mem leak
  • Index(es):
    • Date
    • Thread