Garbage Collector not doing its job. Memory Consumption = 1.5GB & OutOFMemory Exception.
- by imageWorker
I'm working with images (each of size = 5MB). The following code extract some information from each image that is present in the given directory. I'm getting out of memory exception. The size of the process is around (1.5GB). I don't know why garbage collector is not freeing memory.
I even tried adding GC.Collect() as last line of foreach loop.…