Received: from mailgate002.isp.belgacom.be (mailgate002.isp.belgacom.be [195.238.6.87])
	by maildelivery007.isp.belgacom.be (Postfix) with ESMTP id 7E84545C01F
	for <joris.at.lebbeke@skynet.be>; Wed, 28 May 2008 17:25:52 +0200 (CEST)
Authentication-Results: in.mx.skynet.be; dkim=neutral (message not signed) header.i=none
Received: from r153.dmsolutions.ca (HELO duke.maptools.org) ([209.217.116.153])
  by in.mx.skynet.be with ESMTP; 28 May 2008 17:25:51 +0200
Received: from duke.maptools.org (duke.maptools.org [127.0.0.1])
	by duke.maptools.org (8.12.11/8.12.10) with ESMTP id m4SF3rjn022027;
	Wed, 28 May 2008 11:05:57 -0400
Received: from scooby.simplesystems.org (scooby.simplesystems.org
	[65.66.246.67])
	by duke.maptools.org (8.12.11/8.12.10) with ESMTP id m4SF3prd022023
	for <tiff@lists.maptools.org>; Wed, 28 May 2008 11:03:51 -0400
Received: from freddy.simplesystems.org (freddy.simplesystems.org
	[65.66.246.65])
	by scooby.simplesystems.org (8.12.10+Sun/8.12.10) with ESMTP id
	m4SF3hCI012467; Wed, 28 May 2008 10:03:43 -0500 (CDT)
Date: Wed, 28 May 2008 10:03:43 -0500 (CDT)
From: Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
X-X-Sender: bfriesen@freddy.simplesystems.org
To: Mitesh <shailaj@mail.com.np>
Subject: Re: [Tiff] Re: Help needed regarding TIFFClientOpen seekproc
In-Reply-To: <IEEAIAMGFNJJGCEFPHMOKEPHCCAA.shailaj@mail.com.np>
Message-ID: <Pine.SOC.4.64.0805280954330.1131@freddy.simplesystems.org>
References: <IEEAIAMGFNJJGCEFPHMOKEPHCCAA.shailaj@mail.com.np>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
Cc: tiff@lists.maptools.org
X-BeenThere: tiff@lists.maptools.org
X-Mailman-Version: 2.1.4
Precedence: list
List-Id: TIFF and libtiff discussion <tiff.lists.maptools.org>
List-Unsubscribe: <http://lists.maptools.org/mailman/listinfo/tiff>,
	<mailto:tiff-request@lists.maptools.org?subject=unsubscribe>
List-Archive: <http://lists.maptools.org/mailman/private/tiff>
List-Post: <mailto:tiff@lists.maptools.org>
List-Help: <mailto:tiff-request@lists.maptools.org?subject=help>
List-Subscribe: <http://lists.maptools.org/mailman/listinfo/tiff>,
	<mailto:tiff-request@lists.maptools.org?subject=subscribe>
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org
X-UIDL: 000000000023ceae.00002d28
X-MSP-STORE: Wed, 28 May 2008 17:25:53 +0200
Status:   

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/

_______________________________________________
Tiff mailing list: Tiff@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/tiff
http://www.remotesensing.org/libtiff/
