Received: from [207.113.13.68] by phillip.cerious.com (NTMail 3.03.0017/7.aaxh) with ESMTP id pcrews for <pcrews@cerious.com>; Thu, 29 Apr 1999 13:16:05 -0400
Received: from localhost (bin@localhost)
	by gate7.olympiakos.com (8.8.7/8.8.7) with SMTP id NAA01566;
	Thu, 29 Apr 1999 13:06:50 -0400
Received: by gate7.olympiakos.com (bulk_mailer v1.9); Thu, 29 Apr 1999 12:55:46 -0400
Received: (from majordom@localhost)
	by gate7.olympiakos.com (8.8.7/8.8.7) id MAA01507
	for tiff-outgoing; Thu, 29 Apr 1999 12:55:44 -0400
X-Authentication-Warning: gate7.olympiakos.com: majordom set sender to owner-tiff@olympiakos.com using -f
Received: from sgi.com (sgi.SGI.COM [192.48.153.1])
	by gate7.olympiakos.com (8.8.7/8.8.7) with ESMTP id MAA01504
	for <tiff@olympiakos.com>; Thu, 29 Apr 1999 12:55:41 -0400
Received: from geod.ethz.ch (igpho.ethz.ch [129.132.26.4]) 
	by sgi.com (980327.SGI.8.8.8-aspam/980304.SGI-aspam:
       SGI does not authorize the use of its proprietary
       systems or networks for unsolicited or bulk email
       from the Internet.) 
	via ESMTP id MAB04114
	for <tiff@sgi.com>; Thu, 29 Apr 1999 12:55:36 -0400 (EDT)
	mail_from (chunsun@geod.ethz.ch)
Received: from dbasg.ethz.ch (dbasg [129.132.26.32]) by geod.ethz.ch (8.8.7/8.7.3) with ESMTP id SAA24688 for <tiff@sgi.com>; Thu, 29 Apr 1999 18:55:17 +0200 (MET DST)
Received: from dbasg (localhost [127.0.0.1]) by dbasg.ethz.ch (8.8.5/8.6.10) with SMTP id QAA05964 for <tiff@sgi.com>; Thu, 29 Apr 1999 16:55:16 GMT
Message-ID: <37288EF4.446B@geod.ethz.ch>
Date: Thu, 29 Apr 1999 18:55:16 +0200
From: Zhang Chunsun <chunsun@geod.ethz.ch>
Organization: IGP/ETHZ
X-Mailer: Mozilla 3.01SC-SGI (X11; I; IRIX64 6.2 IP28)
MIME-Version: 1.0
To: tiff@sgi.com
Subject: Problem with reading Tiff data
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-tiff@olympiakos.com

Hi,

I am a new TIFF user, I have a problem to read TIFF image using
"TIFFReadScanline" function provided in TIFF library. In my program I
have to read a block of data for processing and then free the image
buffer, move to read another block and so on. I can do this for the
first around 20 blocks, then I got error message when reading image data
as below:

TIFFReadBufferSetup: xxxx.tif :No space for data buffer at scanline -1.

The "TIFFReadScanline" return -1 when this happens and I cannot continue
my work.

I am using version 3.4beta. The image I used is a noncompressed
grayscale 8 bit image, with Orientation: row 0 top, col 0 lhs,
Samples/Pixel: 1, Rows/Strip: 1, Planar Configuration: single image
plane.

Can anybody help me out ? Thank you in advance.

Regards.

Chunsun.
