Page 1 of 1

Problem with memory

Posted: 2019-01-19T01:04:27-07:00
by sunnyrose1994
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 8)

Re: Problem with memory

Posted: 2019-01-19T14:36:43-07:00
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.