2008.11.14 17:49 "Re: [Tiff] Memory leak (TIFFOpen, TIFFReadTile)?", by Bob Friesenhahn
I now have a working solution for the task of untiling and writing
a bip-image, but there is a memory leak somewhere? I am reading
and converting a 1517454784 bytes file. XP's task manager tells me
the process is gradually consuming nearly 1.3 Gbytes at the end.
I tried with _TIFFmalloc() and malloc() but it does not make a difference - memory consumption goes up. Any suggestions out there? Here is the simple code (include statements not there),:
You are running out of memory because your program is using malloc() and realloc().
More seriously, you can't really expect realloc() to work on Windows when it is pushed so close to its arbitrary limits. There may be more success if you allocate all the memory needed in the first place.
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/