octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #49197] xmlread in IO-pkg - open file handles


From: Philip Nienhuis
Subject: [Octave-bug-tracker] [bug #49197] xmlread in IO-pkg - open file handles
Date: Wed, 28 Sep 2016 14:58:23 +0000 (UTC)
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0

Follow-up Comment #7, bug #49197 (project octave):

@OP:
Well I meant Octave file handles opened with fopen(), not so much Java file
handles. 
Those Octave handles can be (should be) closed explicitly with fclose() but
many functions don't do that in case of errors, notably in test blocks - some
core Octave functions included.

[Slightly OT] 
It can get worse though. In the UNO interface for spreadsheet I/O (invoking
LibreOffice behind the scenes) open file connections left dangling when the
function invoking them crashes will simply make it impossible to close Octave
gracefully. First the hidden soffice.bin processes (=LibreOffice) will have to
be killed manually, only then Octave can be exited. 
The relevant UNO spreadsheet I/O scripts include unwind_protect / try-catch
blocks at the relevant places to at least make sure Octave can be exited.

@Pantxo, thank you very much, I'll have a look at your patch asap.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?49197>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]