Answer the question
In order to leave comments, you need to log in
How to tame a GC that reserves memory "in reserve"?
Windows forms project. After calling the Invalidate() method, the application's memory grows, the GC reserves it for possible needs. In fact, the memory actually used by the application remains unchanged. But I know that no more objects will be created in the program, they will only be redrawn, how can I get rid of the reserved memory "in reserve"? I understand that this is not really important, because. if the system runs out of memory, then the GC releases the excess, but nevertheless, I need the application not to eat extra memory, or eat it, but this memory did not increase over time (with each call to Invalidate).
Answer the question
In order to leave comments, you need to log in
In fact, the memory actually used by the application remains unchanged.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question