Return-Path: <tiff-bounces@lists.maptools.org>
Received: from inas007.isp.belgacom.be (localhost [127.0.0.1])
        by inav014.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-AV-3.00) with ESMTP id j7IM1Z9l005046
        for <joris.at.lebbeke@skynet.be>; Fri, 19 Aug 2005 00:01:35 +0200
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from inmx002.isp.belgacom.be (inmx002.isp.belgacom.be [195.238.3.7])
        by inas007.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-AS-2.03) with ESMTP id j7IM1XdU010817
        for <joris.at.lebbeke@skynet.be>; Fri, 19 Aug 2005 00:01:33 +0200
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from duke.maptools.org (r153.dmsolutions.ca [209.217.116.153] (may be forged))
        by inmx002.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-2.32) with ESMTP id j7IM1Ufa005953
        for <joris.at.lebbeke@skynet.be>; Fri, 19 Aug 2005 00:01:31 +0200
        (envelope-from <tiff-bounces@lists.maptools.org>)
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 j7ILpisZ001810;
	Thu, 18 Aug 2005 17:51:56 -0400
Received: from mailhub128.itcs.purdue.edu (mailhub128.itcs.purdue.edu
	[128.210.5.128])
	by duke.maptools.org (8.12.11/8.12.10) with ESMTP id j7ILpeLw001806
	for <tiff@lists.maptools.org>; Thu, 18 Aug 2005 17:51:40 -0400
Received: from jasper (jasper.vet.purdue.edu [128.210.79.167])
	(authenticated bits=0)
	by mailhub128.itcs.purdue.edu (8.13.4/8.13.4/internal-smtp) with ESMTP
	id j7ILpcVT020136
	for <tiff@lists.maptools.org>; Thu, 18 Aug 2005 16:51:39 -0500
Message-Id: <200508182151.j7ILpcVT020136@mailhub128.itcs.purdue.edu>
From: "Mark R. Olin" <olinm@purdue.edu>
To: <tiff@lists.maptools.org>
Date: Thu, 18 Aug 2005 16:51:30 -0500
Organization: Purdue University
MIME-Version: 1.0
X-Mailer: Microsoft Office Outlook, Build 11.0.6353
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
thread-index: AcWkPv2dMRFHv3cKRsqu5WWAfCLE5w==
X-PMX-Version: 4.7.1.128075
X-PerlMx-Virus-Scanned: Yes
Subject: [Tiff] win32 libtiff
X-BeenThere: tiff@lists.maptools.org
X-Mailman-Version: 2.1.4
Precedence: list
Reply-To: olinm@purdue.edu
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="===============1125128467=="
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org
X-UIDL: 000000000023ceae.00000ad6
X-MSP-STORE: Fri, 19 Aug 2005 00:01:37 --21-99
Status:   

This is a multi-part message in MIME format.

--===============1125128467==
Content-Type: multipart/alternative;
	boundary="----=_NextPart_000_0127_01C5A415.15605370"

This is a multi-part message in MIME format.

------=_NextPart_000_0127_01C5A415.15605370
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

Hi,
 
Anybody here use the win32 version of libtiff?
 
I recently installed the win32 libraries/dlls precompiled BINARIES from Sourceforge Gnuwin32 project website and linked the library
to my program to use the high level methods for reading tiffs.
 
I am able to use the library routines successfully to read from tiffs and render the data ... in fact there is no tangible problem
to report in the results.
 
However, I did run the debugger anyway to check for access violations that were not caught at runtime.
 
In my program, I declared:
 
TIFF *tif ;
 
Two breakpoints are set in the program called "tiffread.exe".
 
#1 breakpoint is placed immediately before the line:
 
 tif = TIFFOpen( "..\\images\\barbara.tif", "r" );

At #1 the Debug Log gives an expected output:
 
----- Win32 Debug Session #01 --------
 
Program load @0x00400000 PID 0x000009C4 TID 0x00000D44
Loading ntdll.dll @0x7C900000
Loading KERNEL32.dll @0x7C800000
Loading USER32.dll @0x77D40000
Loading GDI32.dll @0x77F10000
Loading libtiff3.dll @0x6FD80000
Loading jpeg62.dll @0x686C0000
Loading msvcrt.dll @0x77C10000
Loading zlib1.dll @0x61B80000

#2 breakpoint immediately after TIFFOpen is called 
 
At #2 the Debug Log gives an unexpected output showing an Access Violation:
 
----- Win32 Debug Session #01 --------
 
Program load @0x00400000 PID 0x000009C4 TID 0x00000D44
Loading ntdll.dll @0x7C900000
Loading KERNEL32.dll @0x7C800000
Loading USER32.dll @0x77D40000
Loading GDI32.dll @0x77F10000
Loading libtiff3.dll @0x6FD80000
Loading jpeg62.dll @0x686C0000
Loading msvcrt.dll @0x77C10000
Loading zlib1.dll @0x61B80000
Access Violation at address 0x7C96CC82

The program pointer is pointing at "ntdll.dll" and a Debug message appears
 
[Debug Messages]
 
HEAP[tiffread.exe]: 
Invalid Address specified to RtlFreeHeap( 00140000, 0014A640 )

 
Although the program continues to run correctly with no more Access Violations, and I do get all the image data read out correctly,
this concerns me that there may be a potential for a memory leak.  Does anyone else have any ideas?
 
Regards,
 
Mark Olin

------=_NextPart_000_0127_01C5A415.15605370
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<META content=3D"MSHTML 6.00.2900.2722" name=3DGENERATOR></HEAD>
<BODY>
<DIV>
<DIV><SPAN class=3D588151816-18082005><FONT face=3DArial size=3D2><SPAN=20
class=3D299493019-18082005>Hi,</SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=3D588151816-18082005><FONT face=3DArial size=3D2><SPAN=20
class=3D299493019-18082005></SPAN></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D588151816-18082005><FONT face=3DArial size=3D2><SPAN=20
class=3D299493019-18082005>Anybody here use the win32 version of=20
libtiff?</SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=3D588151816-18082005><FONT face=3DArial size=3D2><SPAN=20
class=3D299493019-18082005></SPAN></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D588151816-18082005><FONT face=3DArial size=3D2><SPAN=20
class=3D299493019-18082005>I recently installed the win32 libraries/dlls =

precompiled BINARIES from&nbsp;Sourceforge Gnuwin32&nbsp;project website =
and=20
linked the library to my program to use the high level methods for =
reading=20
tiffs.</SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=3D588151816-18082005><FONT face=3DArial size=3D2><SPAN=20
class=3D299493019-18082005></SPAN></FONT></SPAN><SPAN=20
class=3D588151816-18082005><FONT face=3DArial size=3D2><SPAN=20
class=3D299493019-18082005></SPAN></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D588151816-18082005><FONT face=3DArial size=3D2><SPAN=20
class=3D299493019-18082005>I am able to use the library routines =
successfully to=20
read from tiffs and render the data ... in fact there is no tangible =
problem to=20
report in the results.</SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=3D588151816-18082005><FONT face=3DArial size=3D2><SPAN=20
class=3D299493019-18082005></SPAN></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D588151816-18082005><FONT face=3DArial size=3D2><SPAN=20
class=3D299493019-18082005>However, I did run the debugger anyway to =
check for=20
access violations that were not caught at =
runtime.</SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=3D588151816-18082005><FONT face=3DArial size=3D2><SPAN=20
class=3D299493019-18082005></SPAN></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D588151816-18082005><FONT face=3DArial size=3D2><SPAN=20
class=3D299493019-18082005>In my program, I =
declared:</SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=3D588151816-18082005><FONT face=3DArial size=3D2><SPAN=20
class=3D299493019-18082005></SPAN></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D588151816-18082005><FONT face=3DArial size=3D2><SPAN=20
class=3D299493019-18082005>TIFF *tif ;</SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=3D588151816-18082005><FONT face=3DArial size=3D2><SPAN=20
class=3D299493019-18082005></SPAN></FONT></SPAN><SPAN=20
class=3D588151816-18082005><FONT face=3DArial size=3D2><SPAN=20
class=3D299493019-18082005></SPAN></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D588151816-18082005><FONT face=3DArial size=3D2><SPAN=20
class=3D299493019-18082005>Two breakpoints&nbsp;are set in the program =
called=20
"tiffread.exe".</SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=3D588151816-18082005><FONT face=3DArial size=3D2><SPAN=20
class=3D299493019-18082005></SPAN></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D588151816-18082005><FONT face=3DArial size=3D2><SPAN=20
class=3D299493019-18082005>#1 breakpoint is placed immediately before =
the=20
line:</SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=3D588151816-18082005><FONT face=3DArial size=3D2><SPAN=20
class=3D299493019-18082005></SPAN></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D588151816-18082005><FONT face=3DArial size=3D2><SPAN=20
class=3D299493019-18082005><SPAN class=3D588151816-18082005><FONT =
face=3DArial=20
size=3D2><SPAN class=3D299493019-18082005>&nbsp;tif =3D TIFFOpen(=20
"..\\images\\barbara.tif", "r"=20
);<BR></SPAN></FONT></SPAN></SPAN></FONT></SPAN><SPAN=20
class=3D588151816-18082005><FONT face=3DArial size=3D2><SPAN=20
class=3D299493019-18082005><SPAN class=3D588151816-18082005><FONT =
face=3DArial=20
size=3D2><SPAN=20
class=3D299493019-18082005></SPAN></FONT></SPAN></SPAN></FONT></SPAN></DI=
V>
<DIV><SPAN class=3D588151816-18082005><FONT face=3DArial size=3D2><SPAN=20
class=3D299493019-18082005><SPAN class=3D588151816-18082005><FONT =
face=3DArial=20
size=3D2><SPAN class=3D299493019-18082005>At #1 the Debug Log gives an =
expected=20
output:</SPAN></FONT></SPAN></SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=3D588151816-18082005><FONT face=3DArial size=3D2><SPAN=20
class=3D299493019-18082005><SPAN class=3D588151816-18082005><FONT =
face=3DArial=20
size=3D2><SPAN=20
class=3D299493019-18082005></SPAN></FONT></SPAN></SPAN></FONT></SPAN><SPA=
N=20
class=3D588151816-18082005><FONT face=3DArial size=3D2><SPAN =
class=3D299493019-18082005>
<DIV><SPAN class=3D588151816-18082005><FONT face=3DArial size=3D2><SPAN=20
class=3D299493019-18082005><SPAN class=3D588151816-18082005><FONT =
face=3DArial=20
size=3D2><SPAN=20
class=3D299493019-18082005></SPAN></FONT></SPAN></SPAN></FONT></SPAN><SPA=
N=20
class=3D588151816-18082005><FONT face=3DArial size=3D2><SPAN=20
class=3D299493019-18082005></SPAN></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D588151816-18082005><FONT face=3DArial size=3D2><SPAN=20
class=3D299493019-18082005>----- Win32 Debug Session #01=20
--------</SPAN></FONT></SPAN></DIV>
<DIV>&nbsp;</DIV>
<DIV><SPAN class=3D588151816-18082005><FONT face=3DArial size=3D2><SPAN=20
class=3D299493019-18082005>Program load @0x00400000 PID 0x000009C4 TID=20
0x00000D44<BR>Loading ntdll.dll @0x7C900000<BR>Loading KERNEL32.dll=20
@0x7C800000<BR>Loading USER32.dll @0x77D40000<BR>Loading GDI32.dll=20
@0x77F10000<BR>Loading libtiff3.dll @0x6FD80000<BR>Loading jpeg62.dll=20
@0x686C0000<BR>Loading msvcrt.dll @0x77C10000<BR>Loading zlib1.dll=20
@0x61B80000<BR></SPAN></FONT></SPAN></SPAN></FONT></SPAN><SPAN=20
class=3D588151816-18082005><FONT><SPAN class=3D299493019-18082005></DIV>
<DIV><SPAN class=3D588151816-18082005><FONT face=3DArial size=3D2><SPAN=20
class=3D299493019-18082005>#2 breakpoint immediately after TIFFOpen is =
called=20
</SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=3D588151816-18082005><FONT face=3DArial size=3D2><SPAN=20
class=3D299493019-18082005></SPAN></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D588151816-18082005><FONT face=3DArial size=3D2><SPAN=20
class=3D299493019-18082005>At #2 the Debug Log gives an unexpected =
output=20
</SPAN></FONT></SPAN><SPAN class=3D588151816-18082005><FONT face=3DArial =

size=3D2><SPAN class=3D299493019-18082005>showing an Access=20
Violation:</SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=3D588151816-18082005><FONT face=3DArial size=3D2><SPAN=20
class=3D299493019-18082005></SPAN></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D588151816-18082005><SPAN =
class=3D299493019-18082005><FONT=20
face=3DArial size=3D2>----- Win32 Debug Session #01 =
--------</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Program load @0x00400000 PID 0x000009C4 =
TID=20
0x00000D44<BR>Loading ntdll.dll @0x7C900000<BR>Loading KERNEL32.dll=20
@0x7C800000<BR>Loading USER32.dll @0x77D40000<BR>Loading GDI32.dll=20
@0x77F10000<BR>Loading libtiff3.dll @0x6FD80000<BR>Loading jpeg62.dll=20
@0x686C0000<BR>Loading msvcrt.dll @0x77C10000<BR>Loading zlib1.dll=20
@0x61B80000<BR>Access Violation at address 0x7C96CC82<BR></FONT></DIV>
<DIV><SPAN class=3D299493019-18082005><FONT face=3DArial size=3D2>The =
program pointer=20
is pointing at "ntdll.dll" and a Debug message =
appears</FONT></SPAN></DIV>
<DIV><FONT face=3DArial=20
size=3D2></FONT>&nbsp;</DIV></SPAN></SPAN></SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=3D588151816-18082005><FONT face=3DArial size=3D2><SPAN=20
class=3D299493019-18082005>[Debug Messages]</SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=3D588151816-18082005><FONT face=3DArial size=3D2><SPAN=20
class=3D299493019-18082005></SPAN></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D588151816-18082005><FONT face=3DArial size=3D2><SPAN=20
class=3D299493019-18082005>HEAP[tiffread.exe]: <BR>Invalid Address =
specified to=20
RtlFreeHeap( 00140000, 0014A640 )<BR></SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=3D588151816-18082005><FONT face=3DArial size=3D2><SPAN=20
class=3D299493019-18082005></SPAN></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D588151816-18082005><FONT face=3DArial size=3D2><SPAN=20
class=3D299493019-18082005>Although the program continues to run =
correctly with no=20
more Access Violations, and I do get all the image data read out =
correctly,=20
t</SPAN></FONT></SPAN><SPAN class=3D588151816-18082005><FONT =
face=3DArial=20
size=3D2><SPAN class=3D299493019-18082005>his concerns me that there may =
be a=20
potential for a memory leak.&nbsp; Does anyone else have any=20
ideas?</SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=3D588151816-18082005><FONT face=3DArial size=3D2><SPAN=20
class=3D299493019-18082005></SPAN></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D588151816-18082005><FONT face=3DArial size=3D2><SPAN=20
class=3D299493019-18082005>Regards,</SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=3D588151816-18082005><FONT face=3DArial size=3D2><SPAN=20
class=3D299493019-18082005></SPAN></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D588151816-18082005><FONT face=3DArial size=3D2><SPAN=20
class=3D299493019-18082005>Mark=20
Olin</DIV></SPAN></FONT></SPAN></DIV></BODY></HTML>

------=_NextPart_000_0127_01C5A415.15605370--


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

