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
May 2008

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

2008.05.28 11:04 "Re: Help needed regarding TIFFClientOpen seekproc", by <shailaj@mail.com.np>
2008.05.28 15:03 "Re: Help needed regarding TIFFClientOpen seekproc", by Bob Friesenhahn
2008.06.04 09:03 "Re: Help needed regarding TIFFClientOpen seekproc", by <shailaj@mail.com.np>

2008.05.28 15:03 "Re: Help needed regarding TIFFClientOpen seekproc", by Bob Friesenhahn

On 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/