Re: Never ending lack of memory
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.