Looks like you are running into the problem with capture variables. Try assigning the enumerated value to a temp variable before you use it, i.e.
foreach (string s in fileEntries) {
string temp = s;
t = new Thread(() => Shrink(temp));
t.Start();
}
Momerath
Nearly a Senior Poster
3,386 posts since Aug 2010
Reputation Points: 1,232
Solved Threads: 558