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

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

[Octave-bug-tracker] [bug #59581] [octave forge] (instrument-control) se


From: John Donoghue
Subject: [Octave-bug-tracker] [bug #59581] [octave forge] (instrument-control) serialport error after second call
Date: Tue, 1 Dec 2020 20:54:51 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36 Edg/86.0.622.69

Follow-up Comment #8, bug #59581 (project octave):

For the get issue, if I modify @octave_serialport/get.m, around line 122 to:


  #func     = @(x) __srlp_properties__ (serial, x);
  #retval   = cellfun (func, property, 'UniformOutput', false);
  retval = {};
  for i=1:length(property)
    retval{end+1} = __srlp_properties__ (serial, property{i});  
  endfor


The # parts being the old code ...

I the do not get the unreleased serial port. It seems that a reference to the
serial object is kept because of the handle to the function, even when the
function loses scope.



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?59581>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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