Return-Path: <awaresystems.be+caf_=filtered=awaresystems.be@gmail.com>
Delivered-To: filtered@awaresystems.be
Received: from mx-p.one.com (mx-p.one.com [91.198.169.63])
	by mail6.local.one.com (Postfix) with ESMTP id 3F35730016D258
	for <filtered@awaresystems.be>; Mon, 29 Dec 2014 18:03:38 +0000 (UTC)
X-Virus-Scanned: by one.com
X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "MIME-Version"
Received-SPF: pass (mx-p: domain of awaresystems.be+caf_=filtered=awaresystems.be@gmail.com designates 209.85.217.170 as permitted sender)
X-Greylist: whitelisted by SQLgrey-1.8.0-rc2
Received: from mail-lb0-f170.google.com (mail-lb0-f170.google.com [209.85.217.170])
	by mx-p.one.com (Postfix) with ESMTP id 05429405B3FBF
	for <filtered@awaresystems.be>; Mon, 29 Dec 2014 18:03:38 +0000 (UTC)
Received: by mail-lb0-f170.google.com with SMTP id 10so11421252lbg.15
        for <filtered@awaresystems.be>; Mon, 29 Dec 2014 10:03:37 -0800 (PST)
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:in-reply-to:references:date:message-id:from:to:subject
         :precedence:list-id:list-unsubscribe:list-archive:list-post
         :list-help:list-subscribe:content-type:mime-version:sender:errors-to;
        bh=U4H0kCiSoUIBNDDq5fmLI5KAYgc8xjVg0lZxc+BFrWE=;
        b=AfvD4v3oq5gL5hCEBBUNLahTKyDKgdc0QSmDl8UHhXlpxb3L7y9rGBGrnzezDm50lT
         lN9sdBLy7PS82yAABIpQjZpBKGPUYnEyqzfZCrFj7PfZ635cLiSTrGrPskzOqbokijHG
         Z+7B7awC+m0aztlmClqo33Sw9Ajr/5NcFiUVHpjOxH2PIqZ6WMuZwXAtNCWwGnkO1D6K
         eTe3xGFM8O1uOKOzX4rMnYZ13UEJJgjpEbJKXoo7aKoslLUcS+g7LiWREpXAmbbkaIk0
         ryjA2hacmCRszl23skh1zMyOpcQ72RaXU9C4RWqnhc4dAWr44Ea3XgeqqkPT4HOFF4lj
         7JKQ==
X-Original-Authentication-Results: mx.google.com;       spf=none (google.com: tiff-bounces@lists.maptools.org does not designate permitted sender hosts) smtp.mail=tiff-bounces@lists.maptools.org
X-Received: by 10.112.13.97 with SMTP id g1mr37457151lbc.38.1419876217626;
        Mon, 29 Dec 2014 10:03:37 -0800 (PST)
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.181.147 with SMTP id dw19csp2018998ldc;
        Mon, 29 Dec 2014 10:03:37 -0800 (PST)
X-Received: by 10.152.23.164 with SMTP id n4mr56903743laf.77.1419876215984;
        Mon, 29 Dec 2014 10:03:35 -0800 (PST)
Authentication-Results: mx.google.com;
       spf=none (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.63;
Received: by 10.112.74.9 with POP3 id p9mf12806110lbv.25;
        Mon, 29 Dec 2014 10:03:35 -0800 (PST)
X-Gmail-Fetch-Info: info@awaresystems.be 1 pop.awaresystems.be 110 info@awaresystems.be
Delivered-To: info@awaresystems.be
Received: from mx-p.one.com (mx-p.one.com [91.198.169.63])
	by mail6.local.one.com (Postfix) with ESMTP id A0CDD300153170
	for <info@awaresystems.be>; Mon, 29 Dec 2014 17:08:40 +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-p.one.com (Postfix) with ESMTP id 6C12A41FA8B6D
	for <info@awaresystems.be>; Mon, 29 Dec 2014 17:08:40 +0000 (UTC)
Received: from [10.1.0.241] (localhost.localdomain [127.0.0.1])
	by lists.maptools.org (Postfix) with ESMTP id D3F9535C038;
	Mon, 29 Dec 2014 12:07:48 -0500 (EST)
Received: from mail-wi0-f174.google.com (mail-wi0-f174.google.com
	[209.85.212.174])
	by lists.maptools.org (Postfix) with ESMTPS id D5D5035C023
	for <tiff@lists.maptools.org>; Mon, 29 Dec 2014 12:07:24 -0500 (EST)
Received: by mail-wi0-f174.google.com with SMTP id h11so22610660wiw.13
	for <tiff@lists.maptools.org>; Mon, 29 Dec 2014 09:07:32 -0800 (PST)
MIME-Version: 1.0
X-Received: by 10.180.108.235 with SMTP id hn11mr95823518wib.14.1419872852195; 
	Mon, 29 Dec 2014 09:07:32 -0800 (PST)
Received: by 10.194.161.196 with HTTP; Mon, 29 Dec 2014 09:07:32 -0800 (PST)
In-Reply-To: <CAK8GPyC5jXognH=ZvkciCrNMfCZ0scXmP3iTEEc2K5hZGty6yQ@mail.gmail.com>
References: <CAK8GPyD-YJHuShe7jrzn3DUbmiUyZdyp7k6jLhXeTPR1C4GSQQ@mail.gmail.com>
	<CAAcuQeb-2LHbdxCZwCqHzkfL4EC_Br-6K7QMELigxdw5oUzAqw@mail.gmail.com>
	<CAK8GPyC5jXognH=ZvkciCrNMfCZ0scXmP3iTEEc2K5hZGty6yQ@mail.gmail.com>
Date: Mon, 29 Dec 2014 12:07:32 -0500
Message-ID: <CAK8GPyBns7LDeGTb1HT-x_hAX9T=OR_cDRuboKTg7gA0YkPY5w@mail.gmail.com>
From: Aaron Boxer <boxerab@gmail.com>
To: tiff@lists.maptools.org
Subject: [Tiff] Fwd:  Windows Error Dialog
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="===============0814438513=="
Mime-version: 1.0
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org

--===============0814438513==
Content-Type: multipart/alternative; boundary=089e01419c0afb40e3050b5de871

--089e01419c0afb40e3050b5de871
Content-Type: text/plain; charset=UTF-8

---------- Forwarded message ----------
From: Aaron Boxer <boxerab@gmail.com>
Date: Mon, Dec 29, 2014 at 12:07 PM
Subject: Re: [Tiff] Windows Error Dialog
To: Olivier Paquet <olivier.paquet@gmail.com>


Perfect. Thanks, Olivier!


On Mon, Dec 29, 2014 at 10:18 AM, Olivier Paquet <olivier.paquet@gmail.com>
wrote:

> Hi,
>     That behavior depends on how libtiff was built. It can also
> default to writing the error message to the console. Either way, to
> redirect the messages, set your own error handler with
> TIFFSetErrorHandler() and TIFFSetWarningHandler(). You should still
> check the return value of the functions you're calling for errors. In
> your example, TIFFOpen would return a NULL TIFF*.
>
> Olivier
>
> 2014-12-29 9:59 GMT-05:00 Aaron Boxer <boxerab@gmail.com>:
> > Hi,
> > I am using the latest libtiff on windows. When I try to open a file that
> > doesn't exist, for example,
> > I see a windows dialog pop up with an error message. Is it possible
> > for the library to simply set an error code and return?
> >
> > Thanks!
> > Aaron
> >
> > _______________________________________________
> > Tiff mailing list: Tiff@lists.maptools.org
> > http://lists.maptools.org/mailman/listinfo/tiff
> > http://www.remotesensing.org/libtiff/
>

--089e01419c0afb40e3050b5de871
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br><div class=3D"gmail_quote">---------- Forwarded messag=
e ----------<br>From: <b class=3D"gmail_sendername">Aaron Boxer</b> <span d=
ir=3D"ltr">&lt;<a href=3D"mailto:boxerab@gmail.com">boxerab@gmail.com</a>&g=
t;</span><br>Date: Mon, Dec 29, 2014 at 12:07 PM<br>Subject: Re: [Tiff] Win=
dows Error Dialog<br>To: Olivier Paquet &lt;<a href=3D"mailto:olivier.paque=
t@gmail.com">olivier.paquet@gmail.com</a>&gt;<br><br><br><div dir=3D"ltr">P=
erfect. Thanks, Olivier!<div><div class=3D"h5"><br><div><div class=3D"gmail=
_extra"><br><div class=3D"gmail_quote">On Mon, Dec 29, 2014 at 10:18 AM, Ol=
ivier Paquet <span dir=3D"ltr">&lt;<a href=3D"mailto:olivier.paquet@gmail.c=
om" target=3D"_blank">olivier.paquet@gmail.com</a>&gt;</span> wrote:<br><bl=
ockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #=
ccc solid;padding-left:1ex">Hi,<br>
=C2=A0 =C2=A0 That behavior depends on how libtiff was built. It can also<b=
r>
default to writing the error message to the console. Either way, to<br>
redirect the messages, set your own error handler with<br>
TIFFSetErrorHandler() and TIFFSetWarningHandler(). You should still<br>
check the return value of the functions you&#39;re calling for errors. In<b=
r>
your example, TIFFOpen would return a NULL TIFF*.<br>
<br>
Olivier<br>
<br>
2014-12-29 9:59 GMT-05:00 Aaron Boxer &lt;<a href=3D"mailto:boxerab@gmail.c=
om" target=3D"_blank">boxerab@gmail.com</a>&gt;:<br>
<div><div>&gt; Hi,<br>
&gt; I am using the latest libtiff on windows. When I try to open a file th=
at<br>
&gt; doesn&#39;t exist, for example,<br>
&gt; I see a windows dialog pop up with an error message. Is it possible<br=
>
&gt; for the library to simply set an error code and return?<br>
&gt;<br>
&gt; Thanks!<br>
&gt; Aaron<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; Tiff mailing list: <a href=3D"mailto:Tiff@lists.maptools.org" target=
=3D"_blank">Tiff@lists.maptools.org</a><br>
&gt; <a href=3D"http://lists.maptools.org/mailman/listinfo/tiff" target=3D"=
_blank">http://lists.maptools.org/mailman/listinfo/tiff</a><br>
&gt; <a href=3D"http://www.remotesensing.org/libtiff/" target=3D"_blank">ht=
tp://www.remotesensing.org/libtiff/</a><br>
</blockquote></div><br></div></div></div></div></div>
</div><br></div>

--089e01419c0afb40e3050b5de871--

--===============0814438513==
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/
--===============0814438513==--
