Thanks for the word. Yes to Race Condition.
The problem is below is for a word dictionary.
A short summary of the racing code. This is a loop where methods inside don't always get called.
The files are text files and all of the same data structure.
Each text file in its final condition is an array of classes. This is for easy manipulation as a single dimension array.
For i = 0 to DFilListA.Ubound//An array of FolderItems
//Followed by a section that copies members of the array
If DFilListA(i).CopyFileTo (DFilListB(i))//An array of copy to locations
f = DFilListB(i)
//Followed by the section that gets missed or a method inside gets missed.
If f <> Nil And f.Exists Then
tPPth is the name of the file.
This method CnvtLoad Is a method that:
a. converts the file to an array.
b. removes a header
b. doesn't always happen.
CnvtLoad passes the array to another method called
[code]CnvtPrfDctF( wholeFile, f, sf ).
Wholefile is the array, f the fileName and sf is name of the file in text.
a. Removes several end elements
b. Adds elements to the array. The elements are cross-references to files.
b. doesn't always happen
I have tried to break it up into methods and it works probably 95% of the time. Many times it works 100%
Suggestions on preventing race failures.