|
Post by avpsoft on Jun 8, 2009 17:59:35 GMT -5
Hello
VCLZip 4.50 D2009.
I have source folder with 30 nested folders on 20th I get access violation error when VCLZIp is gathering and counting files in source folder.
Procedure TVCLZip.ExpandForWildCards; --- call TDirSearch.NextFile -- and here on line: SData := FDirStack[FCurrentLevel];
Why is 20 the max in this array definition? FDirStack: array[0..20] of TSearchData;
I tried to chage this and it works fine now: FDirStack: array[0..130] of TSearchData;
|
|
|
Post by Kevin on Jun 9, 2009 6:29:04 GMT -5
That number would have been set a long time ago, and I honestly don't remember why that was set as the maximum at the time. It is likely that it was assumed that nobody would ever try to go beyond 20 directories deep. But you are the first to test that threshold as far as I know. :-)
I will make the modification to a higher max or use a dynamic array. Thanks for uncovering this.
Kevin
|
|