AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2004.11.03 10:00 "[Tiff] Problems faced in using free TIFF software", by koushik sanyal
2004.11.12 19:11 "Re: [Tiff] Problems faced in using free TIFF software", by Andrey Kiselev
2004.12.10 03:59 "[Tiff] errors in with libtiff", by S Smith
2004.12.11 03:45 "[Tiff] linker errors", by S Smith
2004.12.11 03:57 "Re: [Tiff] linker errors", by Chris Losinger
2004.12.23 01:00 "[Tiff] Re: problems populating a large 3D array", by S Smith
2004.12.23 23:37 "[Tiff] Re: problems populating a large 3D array", by S Smith
2005.01.15 17:21 "Re: [Tiff] Re: problems populating a large 3D array", by Andrey Kiselev

2005.01.15 17:21 "Re: [Tiff] Re: problems populating a large 3D array", by Andrey Kiselev

On Thu, Dec 23, 2004 at 03:37:52PM -0800, S Smith wrote:

Okay, got it... I was trying to simply open new files on each iteration and overwrite the existing tif in memory. This worked okay, but only out to 2046 iterations (2^12 - 2, I have no idea where that number comes from in the code).

The proper way to do things is to close the tif on each iteration, calling "TIFFClose(tif);" Duh.

The proper way to do that is to open the TIFF file (and read all tags) before you start to iterate and close file when the iterations stop. Open/close functions should be called outside the loop body, once per file.

I may be a bit late with my advice, sorry.

Regards,
Andrey

--
Andrey V. Kiselev

Home phone: +7 812 5970603 ICQ# 26871517