AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2002.08.20 07:31 "memory allocation", by Peter Majer
2002.08.20 16:13 "RE: memory allocation", by Roger Bedell
2002.08.20 20:48 "OT: large memory allocation in Windows", by Dante Allegria
2002.08.21 08:34 "Re: OT: large memory allocation in Windows", by Rob van den Tillaart
2002.08.21 11:30 "Re: OT: large memory allocation in Windows", by Peter Majer
2002.08.21 13:47 "Re: OT: large memory allocation in Windows", by Rob van den Tillaart
2002.08.21 16:05 "Re: OT: large memory allocation in Windows", by Bob Friesenhahn
2002.08.21 20:47 "Re: OT: large memory allocation in Windows", by Peter Nielsen
2002.08.22 08:33 "Re: OT: large memory allocation in Windows", by Andreas R. Kleinert
2002.08.22 15:30 "RE: OT: large memory allocation in Windows", by Roger Bedell
2002.08.22 16:29 "Re: OT: large memory allocation in Windows", by Chris 'Xenon' Hanson
2002.08.22 17:20 "RE: OT: large memory allocation in Windows", by Roger Bedell
2002.08.22 17:46 "RE: OT: large memory allocation in Windows", by Dante Allegria
2002.08.22 17:33 "Re: OT: large memory allocation in Windows", by Peter Montgomery
2002.08.22 18:45 "Re: OT: large memory allocation in Windows", by Chris 'Xenon' Hanson
2002.08.22 21:19 "Re: OT: large memory allocation in Windows", by Peter Montgomery
2002.09.01 17:14 "Re: OT: large memory allocation in Windows", by Peter Montgomery
2002.09.05 17:00 "Re: OT: large memory allocation in Windows", by Andreas R. Kleinert
2002.09.05 17:03 "Re: OT: large memory allocation in Windows", by Peter Montgomery
2002.08.22 15:59 "RE: OT: large memory allocation in Windows", by Ed Grissom
2002.08.22 22:09 "RE: OT: large memory allocation in Windows", by Andreas R. Kleinert
2002.08.21 11:48 "Re: OT: large memory allocation in Windows", by Peter Nielsen
2002.08.22 18:00 "Re: OT: large memory allocation in Windows", by Bob Friesenhahn
2002.08.22 18:18 "Re: OT: large memory allocation in Windows", by Peter Montgomery

2002.08.20 07:31 "memory allocation", by Peter Majer

Dear readers of tiff@olympiakos.com,

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.

Best regards,
peter majer

p.s. Data are read using TIFFReadEncodedTile(), to which I pass my own memory.

Dr. Peter Majer                        | email : majer@bitplane.com
Bitplane AG                            | voice : ++41 1 430 13 52
Badenerstr. 682                        |
CH-8048 Zurich, Switzerland            |