Return-Path: <tiff-bounces@lists.maptools.org>
X-Original-To: info@awaresystems.be
Delivered-To: info@awaresystems.be
Received: from mx-k.b-one.net (mx-k.one.com [91.198.169.58])
	by mail9.b-one.net (Postfix) with ESMTP id D60BC400107
	for <info@awaresystems.be>; Mon,  6 Apr 2009 20:20:22 +0200 (CEST)
X-Virus-Scanned: by one.com
X-Spam-Score: 0
X-Spam-Level: 
X-Spam-Status: No, score=0 tagged_above=0 required=6 tests=[none]
X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4
Received: from lists.maptools.org (lists.maptools.org [65.39.174.144])
	by mx-k.b-one.net (Postfix) with ESMTP id 23B96C222A3
	for <info@awaresystems.be>; Mon,  6 Apr 2009 20:20:22 +0200 (CEST)
Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by lists.maptools.org (Postfix) with ESMTP id 0D0DD1D0E4111;
	Mon,  6 Apr 2009 13:19:30 -0500 (EST)
Received: from mail-gx0-f217.google.com (mail-gx0-f217.google.com
	[209.85.217.217])
	by lists.maptools.org (Postfix) with ESMTP id 47D521D0E40FA
	for <tiff@lists.maptools.org>; Mon,  6 Apr 2009 13:10:58 -0500 (EST)
Received: by gxk17 with SMTP id 17so4901456gxk.21
	for <tiff@lists.maptools.org>; Mon, 06 Apr 2009 11:10:58 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.150.229.5 with SMTP id b5mr8838942ybh.130.1239041457920; Mon, 
	06 Apr 2009 11:10:57 -0700 (PDT)
In-Reply-To: <Pine.SOC.4.64.0904061126010.29632@freddy.simplesystems.org>
References: <949801310904060835p31b40e63h37e6c4a2073124f6@mail.gmail.com>
	<Pine.SOC.4.64.0904061126010.29632@freddy.simplesystems.org>
Date: Mon, 6 Apr 2009 14:10:57 -0400
Message-ID: <949801310904061110l46100831x4ca81e87b2855361@mail.gmail.com>
From: Christian Henning <chhenning@gmail.com>
To: libtiff - Liste <tiff@lists.maptools.org>
Subject: Re: [Tiff] Writing tiff to in-memory buffer
X-BeenThere: tiff@lists.maptools.org
X-Mailman-Version: 2.1.9
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>
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org

Thanks Bob, for you quick reply. Please see below.

On Mon, Apr 6, 2009 at 12:30 PM, Bob Friesenhahn
<bfriesen@simple.dallas.tx.us> wrote:
> On Mon, 6 Apr 2009, Christian Henning wrote:
>
>> =A0 TIFF* t =3D TIFFClientOpen( "dummy"
>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 , "w"
>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 , &ss
>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 , &read_proc
>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 , &write_proc
>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 , &seek_proc
>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 , &close_proc
>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 , &size_proc
>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 , NULL
>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 , NULL
>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 );
>
> What are the ampersands for?

Good question. ;-) My bad, I fixed it.

>
>> I'm using libtiff version 3 something.
>
> This narrows the libtiff you are using down to maybe a 13 year time span.
>
>> Someone any idea what I'm doing wrong here?
>
> It should be useful to use contrib/stream/tiffstream.cpp from the libtiff
> source distribution as a reference. =A0The version which will be included=
 in
> libtiff4 is updated to standard C++.

Seems I need to recompile libtiff and start debugging. Does the code
work on your machine?

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