Return-Path: <awaresystems.be+caf_=filtered=awaresystems.be@gmail.com>
Delivered-To: filtered@awaresystems.be
Received: from mx-d.one.com (mx-d.one.com [91.198.169.51])
	by mail6.local (Postfix) with ESMTP id F304A3002336A8
	for <filtered@awaresystems.be>; Tue, 17 Jun 2014 10:43:45 +0000 (UTC)
X-Virus-Scanned: by one.com
X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "MIME-Version"
Received-SPF: pass (mx-d: domain of awaresystems.be+caf_=filtered=awaresystems.be@gmail.com designates 209.85.215.48 as permitted sender)
X-Greylist: whitelisted by SQLgrey-1.8.0-rc2
Received: from mail-la0-f48.google.com (mail-la0-f48.google.com [209.85.215.48])
	by mx-d.one.com (Postfix) with ESMTP id BAAF0155CC1
	for <filtered@awaresystems.be>; Tue, 17 Jun 2014 10:43:45 +0000 (UTC)
Received: by mail-la0-f48.google.com with SMTP id gl10so3824023lab.35
        for <filtered@awaresystems.be>; Tue, 17 Jun 2014 03:43:45 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-original-authentication-results:delivered-to:delivered-to
         :mime-version:message-id:from:to:date:importance:sensitivity:subject
         :precedence:list-id:list-unsubscribe:list-archive:list-post
         :list-help:list-subscribe:content-type:mime-version:sender:errors-to;
        bh=ZV19vRywUmz+S5VRDIWXp1kkqpIvREzA75m2HZmKyiU=;
        b=W/QECN4unkaBSKW4HVtcLqzcpGipM0rPOoCMChX1OrobfJTJ1KBhXS9sGtMg548dzd
         VZuka4spzDAgZ7ryE8jMCPUurQQEQAizhUlOt/YFbCL988+BHIgBtipYZtzsAgR8yhmx
         zTO+mOIZFEj/aoJfQbf90Zw9sRhR8aALuWZ3FLwkskEnZrFvj4rZ2T42AMSY2EH/i2MA
         ySDoPem17jbhFrFNOSao2F9SmORRG6g4ZASHjZkCbYza1o3IXDoawhN3+1+rN3saHBVx
         uiI6CI/R+bhGF1BhvfXg3REtUUo3wVGc0a80Ehd7ZObOKJnWg2sqB6u7+q01fJqR4G6e
         sS/Q==
X-Original-Authentication-Results: mx.google.com;       spf=neutral (google.com: tiff-bounces@lists.maptools.org does not designate permitted sender hosts) smtp.mail=tiff-bounces@lists.maptools.org
X-Received: by 10.152.43.135 with SMTP id w7mr18701511lal.32.1403001825417;
        Tue, 17 Jun 2014 03:43:45 -0700 (PDT)
X-Forwarded-To: filtered@awaresystems.be
X-Forwarded-For: awaresystems.be@gmail.com filtered@awaresystems.be
Delivered-To: awaresystems.be@gmail.com
Received: by 10.114.18.137 with SMTP id w9csp55056ldd;
        Tue, 17 Jun 2014 03:43:45 -0700 (PDT)
X-Received: by 10.112.149.71 with SMTP id ty7mr17140279lbb.34.1403001823939;
        Tue, 17 Jun 2014 03:43:43 -0700 (PDT)
Authentication-Results: mx.google.com;
       spf=neutral (google.com: tiff-bounces@lists.maptools.org does not designate permitted sender hosts) smtp.mail=tiff-bounces@lists.maptools.org
Received-SPF: none (google.com: tiff-bounces@lists.maptools.org does not designate permitted sender hosts) client-ip=91.198.169.54;
Received: by 10.152.47.176 with POP3 id e16mf1403955lan.15;
        Tue, 17 Jun 2014 03:43:43 -0700 (PDT)
X-Gmail-Fetch-Info: info@awaresystems.be 1 pop.awaresystems.be 110 info@awaresystems.be
Delivered-To: info@awaresystems.be
Received: from mx-g.one.com (mx-g.one.com [91.198.169.54])
	by mail6.local (Postfix) with ESMTP id 479293002336A8
	for <info@awaresystems.be>; Tue, 17 Jun 2014 09:47:26 +0000 (UTC)
X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "MIME-Version"
X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0-rc2
Received: from lists.maptools.org (ks365428.kimsufi.com [94.23.4.142])
	by mx-g.one.com (Postfix) with ESMTP id 07A7BA82CA
	for <info@awaresystems.be>; Tue, 17 Jun 2014 09:47:25 +0000 (UTC)
Received: from [10.1.0.241] (localhost.localdomain [127.0.0.1])
	by lists.maptools.org (Postfix) with ESMTP id 6930635C02D;
	Tue, 17 Jun 2014 04:46:43 -0500 (EST)
Received: from mout.gmx.net (mout.gmx.net [212.227.15.15])
	by lists.maptools.org (Postfix) with ESMTPS id 98EF035C024
	for <tiff@lists.maptools.org>; Tue, 17 Jun 2014 04:46:03 -0500 (EST)
Received: from [146.140.216.16] by 3capp-gmx-bs38 with HTTP; Tue, 17 Jun
	2014 11:46:04 +0200
MIME-Version: 1.0
Message-ID: <trinity-402562ba-f539-4e48-8b23-f04357aa30b7-1402998363797@3capp-gmx-bs38>
From: =?UTF-8?Q?=22Benedikt_F=C3=BChrer=22?= <Banshee999@gmx.de>
To: tiff@lists.maptools.org
Date: Tue, 17 Jun 2014 11:46:04 +0200
Importance: normal
Sensitivity: Normal
X-Priority: 3
X-Provags-ID: V03:K0:gBhzoJ+Tu6c8lfK7Bg/9J836huPsbyYeEDpQLLvot+0
	vi+ZpXvZB9MggaVc3Xbns5chqPernof/sCw3zKFHArfpnIwcZV
	Y1Bxnubr4+fTgfIs4qfIHx1qlSt5Oa5+36MZog2yfNYQKP8xTu
	u2R4GDm+cEi7+0TVyYIwEfephL2DVamU4Okf8VPAmIN1smI+mf
	U7+cIkkB1DTL73CglO1OFoUteUzRscGlWRdACAFn+BEfYw511o
	qNevq9TylEZzKkRf/Fu99EV7sAbnuubkVsRKO8TbrOdHIsP3Jp e0gtCk=
Subject: [Tiff] In-memory tiffs
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: multipart/mixed; boundary="===============0916515088=="
Mime-version: 1.0
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org

--===============0916515088==
Content-Type: text/html; charset=UTF-8

<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>Hey,</div>

<div>&nbsp;</div>

<div>I have to questions regarding in-memory tiffs:</div>

<div>&nbsp;</div>

<div>1) I&#39;m using the helper functions TIFFStreamOpen to try to write multi-directory tiffs into an ostringstream in binary mode. It works perfectly fine for the first directory but as soon as I call TIFFWriteDirectory the 2nd time, it will fail with the error message &quot;Couldn&#39;t fetch directory count&quot;. What am I doing wrong here? I suspected that the library tries to read information from the stream which seems to fail but I constructed to ostringstream with support for input operations and am otherwise using the tiff handle in the exact same way as it was a std file (in that case it works perfectly fine).</div>

<div>I&#39;m not bound to an ostringstream if that&#39;s what causes the problems but it seemed like the easiest way to get the in-memoy byte representation of a tiff which is my ultimate goal.</div>

<div>&nbsp;</div>

<div>2) Because of this problem I tried to debug the tiff source from within my VStudio project. I&#39;m linking libtiff statically, so it&#39;s added in the linker input field and the include directory is known to the compiler. However it won&#39;t allow me to step into the source files even if I enter the libtiff directory as a directory to look for debug sources (and I&#39;m sure the sources don&#39;t differ from the ones compiled into the lib). But I don&#39;t get why that should even be necessary.</div>

<div>I also tried to link it dynamically. Works fine in general but now I get unresolved externals on the helper functions TIFFStreamOpen. I then added tiff_stream.cxx with the definitions to my project using libtiff so that it gets compiled. Works again but then MSVC told me it couldn&#39;t write the manifest file to it&#39;s location because of a wrong parameter. This is fixed by a complete project rebuild and everything builds and is linked then. The console even says that the debug symbols of libtiff are loaded but I can&#39;t run the program then because MSVCR80.dll is missing although it&#39;s included in the MSVC8 runtime.</div>

<div>Really weird - seems like a x64/x86 conflict but I was building libtiff from the MSVC x64 command line and my project is also built as x64.</div>

<div>&nbsp;</div>

<div>Would love if someone could help me with that.</div>

<div>&nbsp;</div>

<div>Best regards</div></div></body></html>

--===============0916515088==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

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