AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2009.07.02 18:15 "[Tiff] Access violation in TiffOpen Function in "write" mode", by acanicio
2009.07.04 16:55 "Re: [Tiff] Access violation in TiffOpen Function in "write" mode", by acanicio
2009.07.04 17:30 "Re: [Tiff] Access violation in TiffOpen Function in "write" mode", by Toby Thain
2009.07.04 17:51 "Re: [Tiff] Access violation in TiffOpen Function in "write" mode", by Bob Friesenhahn

2009.07.04 17:30 "Re: [Tiff] Access violation in TiffOpen Function in "write" mode", by Toby Thain

On 4-Jul-09, at 12:56 PM, acanicio wrote:

>
> Hello,
>
> I just found out that I have the same problem with some other
> programs (not
> mine), and also in "read" mode...
>

> So I just spent the last 6 hours trying to figure out the problem...

And something incredible happened.

> It works!!. :jumping: Without having changed a single line of

code!!.

I just set the "record field alignment" in the delphi compiler options to

"4" instead of "2".

Geee... Can anybody explain to me why a value of "2" or "1" this ends up

crashing when using libtiff? :confused:

Presumably your setting was different from that used by the ABI assumed by the libraries. This could cause various kinds of unexpected behaviour. The manual may have more to say about it.

--Toby

>

Best regards
Axel

--

> View this message in context: http://www.nabble.com/Access- > violation-in-TiffOpen-Function-in-%22write%22-mode-

> tp24311610p24336211.html