| 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.27 09:35 "Re: Memory leak opening and closing files?", by Eric BrunetonBob Friesenhahn wrote:
> On Wed, 26 Nov 2008, Eric Bruneton wrote:
>
>> the following program shows a constant increase in memory usage, so I
>> suspect a memory leak in the tiff library (using libtiff 3.8.2-1 on
>> Windows):
>>
>> for (int i = 0; i < 1000000; ++i) {
>> TIFF *f = TIFFOpen("test.tiff", "rb");
>> TIFFClose(f);
>> }
>
> Libtiff is open source software. Once you have isolated the problem,
> please send a patch to correct it.
I haven't found it. However I found that when compiling the libtiff code
together with my application code in a single executable (i.e. without
using a separate static library for libtiff), then the problem
disappears. So it might be due to fragmentation, but I don't understand
why this fragmentation occurs in one case but not in the other. The
problem is that I'm not sure I used the same compilation options than
for the precompiled library (I configured the tif_config.h and tifconf.h
manually since I don't have nmake, autoconf, etc - I'm using MinGW)
Eric
|
|||||||