Problem with memory

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Posts: 2
Joined: 2019-01-18T18:35:30-07:00
Authentication code: 1152

Problem with memory

Post by sunnyrose1994 »

I'm using MagickCore under VS 2005. I've tried to run MagickCore sample which is here

and figured out that at the beginning (this line) :


this sample application takes 1 624 KB memory and at the end :


it takes 3 276 KB memory.

Where is 1652 KB memory ? Why it doesn't free all allocated memory ?

Greetings 8)

Posts: 13034
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Problem with memory

Post by snibgo »

sunnyrose1994 wrote:Why it doesn't free all allocated memory ?
Perhaps it does, but Windows doesn't do garbage collection until the program has finished.
snibgo's IM pages: