2020.08.10 16:25 "[Tiff] exceptions in TIFFSetField not being caught?", by Paul Hemmer

2020.08.11 14:12 "Re: [Tiff] exceptions in TIFFSetField not being caught?", by Bob Friesenhahn

Thank you for the input.

Ah yes of course, it's a C library, I should have known/expected that. Sorry.

The use of the term 'exception' can mean multiple things, particularly when the programming language used for the app is C++.

The exception message displayed in visual studio says "unhandled exception in tiff.dll"

I tried also using the error and warning callback handlers, but they didn't trigger either.

Granted, I'm "pulling the rug out from under" the internal TIFF writing functions by disconnecting the storage media as it's working. May be too much to ask the library to gracefully handle such things, but I'm just trying to find to harden my application layer so that it could respond gracefully to a loss of access to storage media during runtime rather than just terminating.

It is possible/likely that libtiff code is not even aware of issues and the Windows run-time code is causing the program to quit.

Bob

Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/
Public Key, http://www.simplesystems.org/users/bfriesen/public-key.txt