AWARE [SYSTEMS] Imaging expertise for the Delphi developer
AWare Systems, Imaging expertise for the Delphi developer, Home TIFF and LibTiff Mailing List Archive

LibTiff Mailing List

TIFF and LibTiff Mailing List Archive
January 1997

Previous Thread
Next Thread

Previous by Thread
Next by Thread

Previous by Date
Next by Date

Contact

The TIFF Mailing List Homepage
This list is run by Frank Warmerdam
Archive maintained by AWare Systems



Valid HTML 4.01!



Thread

1997.01.08 17:14 "LIBFIFF caused first chance exception in NTDLL.DLL", by Albert Ling
1997.01.08 20:01 "Re: LIBFIFF caused first chance exception in NTDLL.DLL", by Phillip Crews
1997.01.09 12:43 "Re: LIBFIFF caused first chance exception in NTDLL.DLL", by Scott Wagner

1997.01.08 17:14 "LIBFIFF caused first chance exception in NTDLL.DLL", by Albert Ling

Hello folks,

I am using libtiff v3.4beta035 with VC++ 4.1b in my application for
reading fax images on Windows NT 4.0b1. For some images (but not all),
the library causes a first chance exception in NTDLL.DLL during debug
session. If I ignore it and continue--or if I'm using the release
build--things seem to be OK.

I've traced the problem to the exact location in tif_win32.c:

static void
_tiffUnmapProc(thandle_t fd, tdata_t base, toff_t map_handle)
{
	UnmapViewOfFile(base);
	//first chance exception happens here
	//when calling CloseHandle()
	CloseHandle((HANDLE)map_handle);
	return;
}

I end up looking at some disassembled code in NTDLL.DLL which I am not
inclined to understand. I guess I could just ignore it since it hasn't
caused any real problem. But if anyone knows what's happening
here---or better yet, can offer a way to eliminate it, I'll be much
obliged.

Albert Ling