Re: Finally have cleared the leaks ...

Bob Friesenhahn <[email protected]> Wed, 25 Mar 2020 08:53:58 -0500 (CDT)
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-1587101267-1585144438=:10606
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8BIT

On Tue, 24 Mar 2020, 10bxjfhf wrote:
>
> During the last call, at some point the log file name gets set to my 
> specified path:
>
> "C:\\Users\\arnold\\AppData\\Roaming\\wxIC-MT\\NewLogFile.log"
>
> at log.c line 354 from log_info_defaults.filename
>
> but after that, at log.c 434++ it is reset because some log.mgk is loaded 
> because at log.c line 429, log_info->log_configured = 0.
>
> Obviously, there ought to be a way in which I can force this to become true, 
> but I don't see a way to do so.

To be clear, currently "log.mgk" is intended to be searched for and 
loaded in all cases except for MethodOutput where a call-back function 
is used.

I do see that InitializeLogInfoPost() was not observing the above 
description when UseInstalledMagick is not defined, so I will submit a 
fix for that.

There is not currently a way to request that a log.mgk not be loaded 
and to use only the default values.

> I have renamed the log.mgk in my configuration directory  as well as a copy 
> in the executable directory.
>
> After this, the file path & name stayed put as defined by my app, but of 
> course I could not reset the output to go to my file.

Provided that a log.mgk is not loaded, I don't see why you can not 
send the output to the file you specified.

I will need to develop a Magick++ test program for this feature.  I 
see you still using the MagickLib namespace where I did not intend 
that it should be required.  If you need to use MagickLib in Magick++ 
code, then there is a bug.

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-1587101267-1585144438=:10606
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


--3735943886-1587101267-1585144438=:10606
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-1587101267-1585144438=:10606--