2005.01.15 17:21 "Re: [Tiff] Re: problems populating a large 3D array", by Andrey Kiselev
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.
Andrey V. Kiselev
Home phone: +7 812 5970603 ICQ# 26871517