| AWARE [SYSTEMS] | Imaging expertise for the Delphi developer | |||||||
![]() |
TIFF and LibTiff Mailing List Archive | |||||||
LibTiff Mailing List
TIFF and LibTiff Mailing List Archive Contact
The TIFF Mailing List Homepage |
Thread1997.01.09 12:43 "Re: LIBFIFF caused first chance exception in NTDLL.DLL", by Scott WagnerHello, 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 |
|||||||