AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2001.08.28 08:20 "unhandled exception while trying to open a tiff file", by Seydou Wane
2001.08.28 19:14 "Re: unhandled exception while trying to open a tiff file", by Peter Montgomery
2001.10.10 23:38 "Access violation", by Claudia
2001.10.11 09:03 "Re: Access violation", by Seydou Wane

2001.10.10 23:38 "Access violation", by Claudia

I'm using the libtiff version v3.5.6 (Beta) under MSVC++ 6.0. I get this following message while trying to open a tiff file with the instruction TIFF* tiff = TiffOpen(myFile,"r"):

Undhandled exception in myAppli.exe (NTDLL.DLL): 0xC0000005: Access violation.

Hi

I'm now facing the same problem:

First-chance exception in data.exe (KERNEL32.DLL): 0xC0000005: Access Violation.
The program 'C:\My Documents\data\Debug\data.exe' has exited with code 0 (0x0).

The picture caused the problem was safely opened by photoshop, but the program crashes when it runs to the line TIFF* tiff =TiffOpen(myFile,"r").

Changing r to ru does not help.

The weirdest part is that when I wrote a three line test program just to open and close the tiff files, it works perfectly for every file I tried; then I added up some dialog boxes, bottons and list boxes, access violation happened......only to some of the files. When it comes to my nearly-finished program with all interface it needs, access violation happens all the time.

Can anyone help?

Thanks,
Claudia