Quantcast
Channel: magick Discussions Rss Feed
Viewing all articles
Browse latest Browse all 3693

New Post: Memory leak in MagickImage.Read

$
0
0
I'm trying to track down a heap memory leak and it seems to be some unmanaged memory allocated by ImageMagick (using 7.0.0.0018 Q8 x64). And I'm wondering if it's something that I'm doing wrong. I have a class that reads in an image from a stream into a MagickImage member variable. Are there any obvious best practices that I might be violating that could lead to memory leaks if not obeyed? For example, I think the leak may be coming from MagickImage.Read, do I need to call Dispose first to make sure? There are cases where I call Ping first (in case I only need to read metadata) and then Read if I need the image. Would I need to clear anything out in between?

Thanks for any help!

tim

Viewing all articles
Browse latest Browse all 3693

Trending Articles