Freeing Up Memory?

Magick.NET is an object-oriented C# interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning Magick.NET
Post Reply
Posts: 23
Joined: 2018-07-22T22:22:12-07:00
Authentication code: 1152

Freeing Up Memory?

Post 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 ?
Post Reply