I am currently testing an application that receives 35 KB of data via TCP/IP and invokes a Work flow that has a code activity to write the data to a log file. The whole process is repeated every 100 milliseconds, but after a number of iterations the application hits "Out Of Memory Exception". I used perfmon to analyze if there is a memory leak , it seems that managed memory was leaking . I tried using a payload with data less than 35KB but the application was still giving me Out Of Memory Exception. To confirm if it was a memory leak (I was suspecting large fragmentation), I used Red Gate Ants memory profiler but this time I launched the application outside visual studio debugging environment strangely it didn't show any symptoms of memory leak and it ran continuously for half a million times.Can anyone explain me why this is happening ?
Is it safe to run tests in debugging mode ?