You need to log in before you can comment on or make changes to this bug.
Win32WarningHandler and Win32ErrorHandler open a message window by default. If TIF_PLATFORM_CONSOLE is defined at compile time, messages are sent to stderr instead of using a message window. For console applications the current default is not optimal. Imagine software like Tesseract doing batch processing (OCR) of image files. Then each TIFF file with some vendor specific field will stop the batch process and show a message window requiring user interaction. The default message handlers could check whether there is a console and use a message window only for GUI applications started without a console. Sample code: static int isGuiApp(void) { return GetStdHandle(STD_ERROR_HANDLE) == NULL; } ... if (isGuiApp()) { // Output to message window. ... } else { // Output to stderr. ... }
Created an attachment (id=660) [details] win32: Automatically choose GUI or console message handler
Bugzilla is no longer used for tracking libtiff issues. Remaining open tickets, such as this one, have been migrated to the libtiff GitLab instance at https://gitlab.com/libtiff/libtiff/issues . The migrated tickets have their summary prefixed with [BZ#XXXX] where XXXX is the initial Bugzilla issue number.