Return-Path: <edward@sidefx.com>
Received: from inas032.isp.belgacom.be (localhost [127.0.0.1])
        by inav007.isp.belgacom.be (8.12.11.20060308/8.12.11/Skynet-IN-AV-3.00) with ESMTP id k9PFXImH017851
        for <joris.at.lebbeke@skynet.be>; Wed, 25 Oct 2006 17:33:18 +0200
        (envelope-from <edward@sidefx.com>)
Received: from inmx011.isp.belgacom.be (inmx011.isp.belgacom.be [195.238.5.50])
	by inas032.isp.belgacom.be (Postfix) with ESMTP id 490E43A0069
	for <joris.at.lebbeke@skynet.be>; Wed, 25 Oct 2006 17:33:18 +0200 (CEST)
Received: from mail.sidefx.com (mail.sidefx.com [149.99.58.193])
        by inmx011.isp.belgacom.be (8.12.11.20060308/8.12.11/Skynet-IN-2.32) with ESMTP id k9PFXFWB011812
        for <joris.at.lebbeke@skynet.be>; Wed, 25 Oct 2006 17:33:15 +0200
        (envelope-from <edward@sidefx.com>)
Message-ID: <453F83C9.9080304@sidefx.com>
Date: Wed, 25 Oct 2006 11:33:29 -0400
From: Edward Lam <edward@sidefx.com>
User-Agent: Thunderbird 1.5.0.7 (Windows/20060909)
MIME-Version: 1.0
To: Amarnath S <amarnaths_vjt@yahoo.com>
CC: Joris <joris.at.lebbeke@skynet.be>, tiff@lists.maptools.org
Subject: Re: [Tiff] Newbie Question on Memory Usage within LibTiff
References: <200610250848.k9P8mePT023011@duke.maptools.org> <001901c6f816$e7ddce80$67ccf451@dfgrrxsknr4e>
In-Reply-To: <001901c6f816$e7ddce80$67ccf451@dfgrrxsknr4e>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-UIDL: 000000000023ceae.00001c98
X-MSP-STORE: Wed, 25 Oct 2006 17:33:19 +0200
Status:   

Joris wrote:
> The Windows Task Manager is a completely unreliable way to measure this.

However, if you're using tif_unix.c on Windows (and a debug build), you might be 
able to accurately detect leaks using _CrtMemDifference() and friends via 
crtdbg.h. See:
http://msdn2.microsoft.com/en-us/library/k4htzb06.aspx

-Edward
