Crypto hash in a Parallel.ForEach

2013-02-15 Thread Greg Keogh
Folks, I can't remember if I've asked about this before. I think I year ago when I hit this I gave up and worked around it ... but now I want it solved! I have a Parallel.ForEach loop over EnumerateFiles which is blazing fast, but then I added to code to make an MD5 hash of the files and it dies

Re: Crypto hash in a Parallel.ForEach

2013-02-15 Thread Corneliu I. Tusnea
Wal, That does not really work properly. You have to dispose the object as well plus (I've tried it) every now and then it hits some odd error. I don't think [ThreadStatic] is safe to use with Parallel.ForEach. Corneliu,. On Fri, Feb 15, 2013 at 10:45 PM, Wallace Turner