2
I’m having memory consumption issues with an application that receives real-time news alerts. Whenever a news arrives, when opening this news, the memory consumption grows, but does not decrease in the same proportion when the form is closed. I tried to call the GC explicitly when closing the form but it seems that did not solve.
GC.Collect();
GC.WaitForPendingFinalizers();
Comparing the consumption recorded by Diagnostic tools, I can see that consumption is always increasing and never returns close to the original level when the application was initialized.
I don’t know what points of code I should check to try to decrease memory consumption.
Calling GC doesn’t make it release memory directly, makes it CHECK for unused objects and finally frees up memory used by them. If calling the GC does not work, he must be understanding that the objects are being used.
– Ronaldo Araújo Alves