Posts List

C# Memory Leaks

For the past three or four work days I have been trying to find a memory leak in a Windows Service we created that is used to synchronize data between two systems on a nightly basis. I had just added a single method to it for a new job and the memory usage was climbing until it hit the 2GB process limit. At first I thought it might be something going wrong in my foreach loop.