Return-Path: <tiff-bounces@lists.maptools.org>
X-Original-To: info@awaresystems.be
Delivered-To: info@awaresystems.be
Received: from mx-e.b-one.net (mx-e.one.com [91.198.169.52])
	by mail9.b-one.net (Postfix) with ESMTP id 6F5CD400223
	for <info@awaresystems.be>; Thu, 27 Nov 2008 11:23:46 +0100 (CET)
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 duke.maptools.org (r153.dmsolutions.ca [209.217.116.153])
	by mx-e.b-one.net (Postfix) with ESMTP id A710CC2E02F
	for <info@awaresystems.be>; Thu, 27 Nov 2008 11:23:45 +0100 (CET)
Received: from duke.maptools.org (duke.maptools.org [127.0.0.1])
	by duke.maptools.org (8.12.11/8.12.10) with ESMTP id mARAMCde013464;
	Thu, 27 Nov 2008 05:22:48 -0500
Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.226])
	by duke.maptools.org (8.12.11/8.12.10) with ESMTP id mARAM8l4013458
	for <tiff@lists.maptools.org>; Thu, 27 Nov 2008 05:22:08 -0500
Received: by rv-out-0506.google.com with SMTP id f6so884185rvb.9
	for <tiff@lists.maptools.org>; Thu, 27 Nov 2008 02:22:07 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:received:received:message-id:date:from:to
	:subject:cc:in-reply-to:mime-version:content-type
	:content-transfer-encoding:content-disposition:references;
	bh=lxRDtoQowmjDtdykBdZ9NgWOaYVOg4jhWy8Dyo1N7rw=;
	b=En9RoCc9tj/xgPYMICcCe3Oyw+v8rzEO2IX9hjBgmOQ1wuJcSCvzVuKwCsWuaW4Fen
	tfFNtDhLr2AQWP7pnGrzlzdLN+UN/618bH0fo6A+YVycp+QguVVNqZ7NhoVz4K7Ishd4
	sCdBujEH77CepV+vlMw/S398aGIvdlUNuSfn0=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=message-id:date:from:to:subject:cc:in-reply-to:mime-version
	:content-type:content-transfer-encoding:content-disposition
	:references;
	b=Dl6zL9GKxUwWg+BH0w2w/JUbyuHl8FRAPrynfORt5U+JnOSZtOY+WlbGjtSWCKatJN
	SyFjxkT+zQQOpC7DJpaglMVcgZdzYO07bVW7UL43p0Js4/SfYYZrx6B9kTAzvBxcao0B
	+Ytdh0RUDh4p0hlod2K4xgedTULxyDOrKRppU=
Received: by 10.142.156.2 with SMTP id d2mr2915275wfe.255.1227781327629;
	Thu, 27 Nov 2008 02:22:07 -0800 (PST)
Received: by 10.143.157.17 with HTTP; Thu, 27 Nov 2008 02:22:07 -0800 (PST)
Message-ID: <522c6460811270222t6af86aeu9dfdc3bebdcb37b4@mail.gmail.com>
Date: Thu, 27 Nov 2008 10:22:07 +0000
From: jcupitt@gmail.com
To: "Eric Bruneton" <Eric.Bruneton@inria.fr>
Subject: Re: [Tiff] Memory leak opening and closing files?
In-Reply-To: <492E69D2.3040906@inria.fr>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
References: <492D6EF2.1080802@inria.fr>
	<Pine.SOC.4.64.0811261111290.25114@freddy.simplesystems.org>
	<492E69D2.3040906@inria.fr>
Cc: tiff@lists.maptools.org
X-BeenThere: tiff@lists.maptools.org
X-Mailman-Version: 2.1.4
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>
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org

2008/11/27 Eric Bruneton <Eric.Bruneton@inria.fr>:
> I haven't found it. However I found that when compiling the libtiff code
> together with my application code in a single executable (i.e. without using
> a separate static library for libtiff), then the problem disappears. So it
> might be due to fragmentation, but I don't understand why this fragmentation
> occurs in one case but not in the other.

There's also the low-fragmentation heap:

  http://msdn.microsoft.com/en-us/library/aa366750(VS.85).aspx

you could see if this reduces the problem.

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