Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Obtain directory size.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Obtain directory size.



Looking more carefully at my own code, I would probably suggest changing this so that the allocations for the fetchedRefs and fetchedInfos are made outside of the recursion. 

I'm now afraid that this could easily exhaust the stack if a folder is sufficiently deep.  FSRefs and FSCatalogInfos aren't small!

Daniel

On May 20, 2005, at 9:42 AM, Daniel Jalkut wrote:


        const ItemCount kMaxEntriesPerFetch = 256;
        ItemCount actualFetched;
        FSRef    fetchedRefs[kMaxEntriesPerFetch];    
        FSCatalogInfo fetchedInfos[kMaxEntriesPerFetch];
        
 _______________________________________________
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

References: 
 >Obtain directory size. (From: Julian <email@hidden>)
 >Re: Obtain directory size. (From: Daniel Jalkut <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.