2002.08.20 07:31 "memory allocation", by Peter Majer
Dear readers of firstname.lastname@example.org,
the section on memory management in the libtiff documentation is dangerously misleading. It gave me the impression that I can pass memory to the library into which it reads image data. And obviously I assumed there would not be extra memory allocated by the library to hold these data. Wrong!
When I call TIFFClose after having read a 400 MB dataset, the tiff library releases 400 MB of memory! This memory should not be necessary. At least it should be documented that the library does this allocation.
p.s. Data are read using TIFFReadEncodedTile(), to which I pass my own memory.
Dr. Peter Majer | email : email@example.com
Bitplane AG | voice : ++41 1 430 13 52
Badenerstr. 682 |
CH-8048 Zurich, Switzerland |