[brailleblaster] Re: Open File Handle for liblouisutdml.log

  • From: Brandon Roller <brandon.r.roller@xxxxxxxxx>
  • To: brailleblaster@xxxxxxxxxxxxx
  • Date: Wed, 17 Jul 2013 09:15:41 -0400

OK, great.
Just to let you know.  It also seems that calling log_End before BB exits
does not work if any exceptions occurred within liblouisutdml or liblouis.
So if nothing is ever written to the logs, calling log_end from the java
code works, but if something has been written to the logs then it doesn't.


On Wed, Jul 17, 2013 at 9:04 AM, John J. Boyer <john.boyer@xxxxxxxxxxxxxxxxx
> wrote:

> Ok, I'll look into this.
>
> John
>
> On Wed, Jul 17, 2013 at 08:33:14AM -0400, Brandon Roller wrote:
> > I assume it is lbu_free because free is called by the liblouisutdml
> > instance before BB exits.
> > However, in order to delete the log file, the liblouisutdml instance has
> to
> > call logEnd also in so the the file can be delted.
> >
> >
> > On Tue, Jul 16, 2013 at 5:09 PM, John J. Boyer <
> john.boyer@xxxxxxxxxxxxxxxxx
> > > wrote:
> >
> > > Brandon,
> > >
> > > I just noticed that you mention lou_free. It should be lbu_free . That
> > > is for liblouisutdml, which in turn calls lou_free at the appropriaate
> > > point.
> > >
> > > John
> > >
> > > On Tue, Jul 16, 2013 at 03:59:12PM -0500, John J. Boyer wrote:
> > > > This should be handled by liblouisutdml. BrailleBlaster should not
> have
> > > > to worry about it. Well, I guess it's another bug.
> > > >
> > > > John
> > > >
> > > > On Tue, Jul 16, 2013 at 03:33:43PM -0400, Brandon Roller wrote:
> > > > > OK, putting lou_logEnd before the call to lou_free works, but is
> this
> > > the
> > > > > best way to free the log?
> > > > > So is this something that BB should be responsible for or should
> this
> > > be
> > > > > handled by liblouisutdml or liblouis?
> > > > >
> > > > >
> > > > >
> > > > > On Tue, Jul 16, 2013 at 3:21 PM, John J. Boyer <
> john@xxxxxxxxxxxxxx>
> > > wrote:
> > > > >
> > > > > > The log may contain messages from both liblouisutdml and
> liblouis.
> > > There
> > > > > > are methods in FileUtils for displaying it in the Gui or at the
> > > command
> > > > > > line. The latter method used to work. translateFile and other
> methods
> > > > > > are supposed to close the log file when they finish. This is
> done by
> > > > > > calling lou_logEnd
> > > > > >
> > > > > > John
> > > > > >
> > > > > > On Tue, Jul 16, 2013 at 03:13:45PM -0400, Brandon Roller wrote:
> > > > > > > There is still an open file handle for liblouisutdml.log in the
> > > temp
> > > > > > > folder.  The file can't be deleted when exiting the program.
>  Is
> > > this log
> > > > > > > being used by both liblouisutdml and liblouis?
> > > > > >
> > > > > > --
> > > > > > John J. Boyer, Executive Director
> > > > > > GodTouches Digital Ministry, Inc.
> > > > > > http://www.godtouches.org
> > > > > > Madison, Wisconsin, USA
> > > > > > Peace, Love, Service
> > > > > >
> > > > > >
> > > > > >
> > > >
> > > > --
> > > > John J. Boyer; President, Chief Software Developer
> > > > Abilitiessoft, Inc.
> > > > http://www.abilitiessoft.com
> > > > Madison, Wisconsin USA
> > > > Developing software for people with disabilities
> > > >
> > >
> > > --
> > > John J. Boyer; President, Chief Software Developer
> > > Abilitiessoft, Inc.
> > > http://www.abilitiessoft.com
> > > Madison, Wisconsin USA
> > > Developing software for people with disabilities
> > >
> > >
> > >
>
> --
> John J. Boyer; President, Chief Software Developer
> Abilitiessoft, Inc.
> http://www.abilitiessoft.com
> Madison, Wisconsin USA
> Developing software for people with disabilities
>
>
>

Other related posts: