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.09 12:43 "Re: LIBFIFF caused first chance exception in NTDLL.DLL", by Scott Wagner

Hello,

For those of you who are interested in the Win32 stuff:

>>	//first chance exception happens here
>>	//when calling CloseHandle()
>>	CloseHandle((HANDLE)map_handle);
>
>NT 4.0 generates an exception (which does eventually get handled) when a
>program closes a file handle that has already been closed. This shouldn't
>cause any real problems.
>
>In one of my projects, I kind of got tired of the messages (due to a
>different issue, not the TIFF library) and enclosed my CloseHandle call in
>a try/except block, so that the exception is no longer reported by the
>debugger.
>

I considered this possibility when I wrote the Win32 port, but did not add
it to the release because I was not sure that all target compilers would
handle try/except/finally constructs.  I suppose the best solution would be
to conditionally use this construct.  If you have a modification that has a
tested try/except/finally construct, please send it to me. I will add the
preprocessor stuff to make it conditional and send it on to Sam for release.

Regards,


Scott Wagner    (wagner@itek.com)
Staff Engineer
Itek Graphix
Rochester, NY USA