2005.08.18 21:51 "[Tiff] win32 libtiff", by Mark R. Olin

2005.08.23 02:18 "RE: [Tiff] win32 libtiff", by Mark R. Olin

Hi Larry,

I am very interested in what you have. I will contact you directly. I do have VC6, but will have to get the 2003 compiler from microsoft.


>Hi Mark,

>I finally got the zlib+jpeg+libtiff combo to play happily in >Microsoft-land with a strange mix of a VC IDE project file for >jpeg (never got the command line compile to work right), and >command line compiles of libtiff and zlib. I can send these to >you if you like, but they do include some compiler switches >that require either VC7 or the 2003 optimizing compiler >download from microsoft--it's free if you have VC6. Please >contact me directly if you want the files and more details.


Tel: 715 497-2351

Fax: 413 280-2784



>Mark R. Olin wrote:

Yeah, I am getting the drift of what Larry, Jeff and Edward

>are saying. I am trying different things along those lines, >including adding the /MDd to "makefile.vc" and to the command >line link options in Codewarrior. And I don't set the flag for >JPEG_SUPPORT, so it only creates binaries for libtiff.dll and

>libtiff.lib, and my program only requires the libtiff.dll now.

But still no luck. Same error:

"Invalid Address specified to RtlFreeHeap"

I will check out the light reading at the msdn weblink that

>Jeff gave me and try to get better insight into this peculiar problem.

-----Original Message-----
tiff-bounces@lists.maptools.org >From:
On Behalf Of Larry Grill >[mailto:tiff-bounces@lists.maptools.org]
Friday, August 19, 2005 6:59 PM >Sent:
tiff@lists.maptools.org >To:
Re: [Tiff] win32 libtiff >Subject:

Yeah, like Jeff said.

I've run into similar strangeness. If you are linking zlib

and jpeg you

should also compile those with the same static or

multithreaded options

or you can run into problems.


Tel: 715 497-2351

Fax: 413 280-2784



Check to make sure your program and libtiff were compiled

>against the

same runtime, i.e. all the /MDd or /MT or /ML or whatever

flags are the same across all the software. I've found

>things can

almost - but not quite - work when there is
a mismatch.




On Fri, 2005-08-19 at 13:37 -0700, Mark R. Olin wrote:

I was able to compile a binary lib and dll using "nmake"

(begrudgingly), which is a MS Visual Studio utility (I have it, but

don't use much).

I read comments in "makefile.vc" in the libtiff distribution which

said to execute

nmake /f makefile.vc all

and that worked to supply me with natively compiled libtiff.lib and


Linking them into my program using Codewarrior IDE, I am

>able to use

the TIFF routines successfully again, but with the same

>unusual Access

Violation and runtime error in ntdll.dll.

Invalid Address specified to RtlFreeHeap( 00140000, 0014A2F8 )

Since I am using two different linking environments,

>Codewarrior and

MSVC, I am thinking that the problem lies there.

Anyway, thanks to Edward L. for the new direction.

I'll work with Cygwin gcc and make and let you know how it goes.

Gotta install Cygwin first though.

I really recommend setting up make. There's a win32 version

of make that you can compile as well although I'm not sure

how well it works. We're using the cygwin version of gnu make.


>http://lists.maptools.org/mailman/listinfo/tif> f