| 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.05.28 15:03 "Re: Help needed regarding TIFFClientOpen seekproc", by Bob FriesenhahnOn Wed, 28 May 2008, Mitesh wrote:
> Environment Windows XP:
> The libtiff source is built by Visual Studio 2005 SP1. The build completed
> successfully.
>
> I am using TIFFClientOpen: If I do not use TIFFClientOpen but use TIFFOpen
> with an arbitary file name, it is working perfectly. Also I do not have
> problem reading the multipage tiff file and displaying them with
> TIFFClientOpen ("r" option).
I have seen this exact problem before in my own code and it was not
specific to Windows. It was an interface problem with my code. What
version of libtiff are you using?
Any parameter size mis-match in the callback functions registered by
TIFFClientOpen() will cause problems. Libtiff 4.X is introducing
64-bit file offsets (to support BigTIFF) whereas libtiff 3.X.X uses
unsigned 32-bit offsets. Notice that the seek function also returns a
64-bit offset value and dire things may happen if this gets converted
to a 32-bit value.
Bob
======================================
Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/
|
|||||||