Re: Windows Log txtfile
Bob Friesenhahn <[email protected]> Fri, 6 Mar 2020 13:00:25 -0600 (CST)
| Newsgroups | gmane.comp.video.graphicsmagick.apis |
|---|---|
| Message-ID | <[email protected]> |
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
--3735943886-953690185-1583521225=:19876
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8BIT
On Fri, 6 Mar 2020, 10bxjfhf wrote:
> On 2020-03-06 8:31 a.m., Bob Friesenhahn wrote:
>>
>> While Magick++ does not currently offer a wrapper for them, the core C
>> library offers SetErrorHandler(), SetWarningHandler(), and
>> SetFatalErrorHandler() which can be used to synchronously deal with
>> error/warning reports. These can be set before InitializeMagick() is
>> called.
>
> From my current trials with setting the error handler, I have run into the
> issue that GetErrorMessageString is not exported from the error handler code,
> hence I see no way to use it in my custom error handle
This is the entire implementation of the function:
static const char *GetErrorMessageString(const int error_number)
{
const char
*message;
message=strerror(error_number);
if (message == (const char *) NULL)
return("Error number is out of range");
return(message);
}
Since this is just a simple wrapper around the standard strerror()
function are you able to implement its function in your own code?
The implementation behaves the same as standard strerror() but it
protects against the case that strerror() returns NULL.
Bob
--
Bob Friesenhahn
[email protected], http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/
Public Key, http://www.simplesystems.org/users/bfriesen/public-key.txt
--3735943886-953690185-1583521225=:19876
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
--3735943886-953690185-1583521225=:19876
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
Graphicsmagick-apis mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/graphicsmagick-apis
--3735943886-953690185-1583521225=:19876--