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.
Post Reply
Posts: 2
Joined: 2019-01-18T18:35:30-07:00
Authentication code: 1152

Problem with memory

Post by sunnyrose1994 » 2019-01-19T01:04:27-07:00

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: 11222
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Problem with memory

Post by snibgo » 2019-01-19T14:36:43-07:00

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:

Post Reply