Return-Path: <tiff-bounces@lists.maptools.org>
X-Original-To: info@awaresystems.be
Delivered-To: info@awaresystems.be
Received: from mx-s.b-one.net (mx-s.one.com [91.198.169.250])
	by mail9.b-one.net (Postfix) with ESMTP id EC14D40023E
	for <info@awaresystems.be>; Thu,  5 May 2011 18:30:14 +0200 (CEST)
Received: by mx-s.b-one.net (Postfix, from userid 106)
	id D86605A03524; Thu,  5 May 2011 18:29:29 +0200 (CEST)
X-Virus-Scanned: by one.com
X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4
Received: from lists.maptools.org (lists.maptools.org [65.39.174.144]) by
 mx-s.b-one.net (Postfix) with ESMTP id B81295A48655 for
 <info@awaresystems.be>; Thu,  5 May 2011 18:29:28 +0200 (CEST)
Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by
 lists.maptools.org (Postfix) with ESMTP id 6FCE886E10; Thu,  5 May 2011
 11:27:24 -0500 (EST)
Received: from mail-ew0-f44.google.com (mail-ew0-f44.google.com
 [209.85.215.44]) by lists.maptools.org (Postfix) with ESMTPS id A7F7186D6E
 for <tiff@lists.maptools.org>; Thu,  5 May 2011 11:22:50 -0500 (EST)
Received: by ewy19 with SMTP id 19so761793ewy.3 for
 <tiff@lists.maptools.org>; Thu, 05 May 2011 09:22:49 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.14.15.168 with SMTP id f40mr1315787eef.64.1304612569798; Thu,
 05 May 2011 09:22:49 -0700 (PDT)
Received: by 10.14.127.1 with HTTP; Thu, 5 May 2011 09:22:49 -0700 (PDT)
In-Reply-To: <BANLkTin3kfrUSp2JNLQiA+_jfzbCuzYoNA@mail.gmail.com>
References: <BANLkTi=EA83wMep6UbFhONKiVdEPSEvOQw@mail.gmail.com>
 <BANLkTinhedBiJhjQULar1jJSSgYWtskReA@mail.gmail.com>
 <BANLkTin3kfrUSp2JNLQiA+_jfzbCuzYoNA@mail.gmail.com>
Date: Thu, 5 May 2011 12:22:49 -0400
Message-ID: <BANLkTimUCD4wFZa2Y4MyqDn_SFehkdKkVA@mail.gmail.com>
From: Olivier Paquet <olivier.paquet@gmail.com>
To: Katerina Sedivy <sedivyk@gmail.com>
Cc: tiff@lists.maptools.org
Subject: Re: [Tiff] Access Violation on TiffClose()
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="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org

On Thu, May 5, 2011 at 12:02 PM, Katerina Sedivy <sedivyk@gmail.com> wrote:
> Ok I was checking the return of TiffOpen at debug mode with a watch, but I
> still ran the test here is something weird:
> [...]

Perhaps the try/finally is causing the problem then? Try with a non
empty try block. Also try removing outputdebugstring to see if this is
somehow making the second case work. I've never done any delphi and
haven't touched pascal in 15 years so I can't be of much more help.

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