Hello,

I have in my code the following statement:

    NSDirectoryEnumerator* dirEnum;
    NSArray* inDirContents;

    dirEnum = [[NSFileManager defaultManager] enumeratorAtPath:inPath]; //
inPath is a valid path
    inDirContents = [dirEnum allObjects];

I have noticed that when the path contains many objects, a significant
amount of memory is allocated that is not released, neither when trying to
explicitly release inDirContents, nor when using an autorelease pool.
Can someone explain to me why this happens please and how to solve it?

Kind regards to all, this is my first mail in this list.
Vas
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to