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.
sunnyrose1994
Posts: 2 Joined: 2019-01-18T18:35:30-07:00
Authentication code: 1152
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
http://www.imagemagick.org/script/magick-core.php
and figured out that at the beginning (this line) :
MagickCoreGenesis(*argv,MagickTrue);
this sample application takes 1 624 KB memory and at the end :
return(0);
it takes 3 276 KB memory.
Where is 1652 KB memory ? Why it doesn't free all allocated memory ?
Greetings
snibgo
Posts: 12159 Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK
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.