| AWARE [SYSTEMS] | Imaging expertise for the Delphi developer | |||||||
![]() |
TIFF and LibTiff Mailing List Archive | |||||||
LibTiff Mailing List
TIFF and LibTiff Mailing List Archive Contact
The TIFF Mailing List Homepage |
Thread2008.11.14 17:49 "Re: Memory leak (TIFFOpen, TIFFReadTile)?", by Bob FriesenhahnOn Fri, 14 Nov 2008, Ilkka Korpela wrote: > > 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. Bob ====================================== Bob Friesenhahn bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/ GraphicsMagick Maintainer, http://www.GraphicsMagick.org/ |
|||||||