Page 1 of 1

Freeing Up Memory?

Posted: 2019-04-03T13:04:52-07:00
by GlennIM
I have a method that creates several new MagickImage objects and this method gets run many times through the execution of my application. I see the memory increasing rapidly and the application goes into Non-Responding state because it is using a lot of memory.

After the method is called I call GC.Collect() but it doesn't work right all the time.

What is the best way to clean up the memory after the method is called?

Thanks, Glenn


On a side note maybe upgrading to a higher version will solve these memory problems I'm having.

I have Magick.NET-Q16-AnyCPU, version installed

How can I upgrade my installation to the latest package which is 7.11.1 ? Do I use the Package Manager command... Install-Package Magick.NET-Q16-AnyCPU -Version 7.11.1 ? But how do I remove version ?