AWARE [SYSTEMS] Imaging expertise for the Delphi developer
AWare Systems, Imaging expertise for the Delphi developer, Home TIFF and LibTiff Mailing List Archive

LibTiff Mailing List

TIFF and LibTiff Mailing List Archive
December 2004

Previous Thread
Next Thread

Previous by Thread
Next by Thread

Previous by Date
Next by Date

Contact

The TIFF Mailing List Homepage
This list is run by Frank Warmerdam
Archive maintained by AWare Systems



Valid HTML 4.01!



Thread

2004.12.22 23:42 "problems populating a large 3D array", by S Smith
2004.12.23 01:00 "Re: problems populating a large 3D array", by S Smith
2004.12.23 23:37 "Re: problems populating a large 3D array", by S Smith
2005.01.15 17:21 "Re: problems populating a large 3D array", by Andrey Kiselev

2005.01.15 17:21 "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