Sorry for the misunderstanding. I got the idea you were suggesting that the .Dispose should be moved outside the loop.