• 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: Never ending lack of memory
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Never ending lack of memory


  • Subject: Re: Never ending lack of memory
  • From: Lorenzo Puleo <email@hidden>
  • Date: Sun, 09 Mar 2003 14:22:20 +0100

> This is still creating an autoreleased array since the autoreleased
> array is created by [manager directoryContentsAtPath:sourceDir]. You
> can't prevent this.
Amazing! Thank you. I didn't imagine this. I though it was such a volatile
variable create and destroyed at the same moment.
So, I have no ways. But, if I do what you told me,

tEnumerator= [manager enumeratorAtPath: sourceDir];
and
while ((subItem =[tEnumerator nextObject])!=nil)

Isn't that the same problem?
subItem is a NSString autorelease object, so it will be released at the next
event loop. No earlier.
And I think NSDirectoryEnumerator as well.
Do I think right?

--
Lorenzo Puleo
mailto:email@hidden
_______________________________________________
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.

References: 
 >Re: Never ending lack of memory (From: email@hidden)

  • Prev by Date: Re: Audio CD Naming
  • Next by Date: Fwd: NSOpenPanel and aliases - bug??
  • Previous by thread: Re: Never ending lack of memory
  • Next by thread: Re: Never ending lack of memory
  • Index(es):
    • Date
    • Thread