[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #55254] clear all crashes when variable from o
From: |
John W. Eaton |
Subject: |
[Octave-bug-tracker] [bug #55254] clear all crashes when variable from oct file class is displayed in workspace |
Date: |
Fri, 18 Jan 2019 16:20:55 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0 |
Follow-up Comment #20, bug #55254 (project octave):
OK, a start at implementing total use counts for octave_value objects is
attached. It sketches out what I was thinking about as far as counting, but
doesn't attempt to do anything when overall use counts go to zero.
However, it also doesn't work properly as written because virtual methods
called from constructors or destructors are not virtual. D'oh, I forgot about
that important detail when imagining how this all would work.
So, I see that it could still work, but instead of modifying the
octave_base_value constructors and destructor to manage counts for derived
classes, the constructors and destructors for ALL of the derived classes would
have to be modified to manage their total use counts.
Attempting to make things a bit simpler by managing total use counts inside
the octave_value constructors that create the derived types is probably not a
good solution because we can't guarantee that all uses will be created this
way.
Is it worth the effort to try to modify the constructors and destructor for
all derived types to manage their total use counts?
I think it is better to just prevent the unloading of .oct files that define
data types. That will still require modifying some existing code, but it will
be a simpler and I think much more reliable solution.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?55254>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #55254] clear all crashes when variable from oct file class is displayed in workspace, (continued)
- [Octave-bug-tracker] [bug #55254] clear all crashes when variable from oct file class is displayed in workspace, John Donoghue, 2019/01/16
- [Octave-bug-tracker] [bug #55254] clear all crashes when variable from oct file class is displayed in workspace, John W. Eaton, 2019/01/16
- [Octave-bug-tracker] [bug #55254] clear all crashes when variable from oct file class is displayed in workspace, John Donoghue, 2019/01/17
- [Octave-bug-tracker] [bug #55254] clear all crashes when variable from oct file class is displayed in workspace, Rik, 2019/01/17
- [Octave-bug-tracker] [bug #55254] clear all crashes when variable from oct file class is displayed in workspace, John Donoghue, 2019/01/17
- [Octave-bug-tracker] [bug #55254] clear all crashes when variable from oct file class is displayed in workspace, John W. Eaton, 2019/01/17
- [Octave-bug-tracker] [bug #55254] clear all crashes when variable from oct file class is displayed in workspace, Rik, 2019/01/17
- [Octave-bug-tracker] [bug #55254] clear all crashes when variable from oct file class is displayed in workspace, John Donoghue, 2019/01/17
- [Octave-bug-tracker] [bug #55254] clear all crashes when variable from oct file class is displayed in workspace, John W. Eaton, 2019/01/17
- [Octave-bug-tracker] [bug #55254] clear all crashes when variable from oct file class is displayed in workspace, John W. Eaton, 2019/01/17
- [Octave-bug-tracker] [bug #55254] clear all crashes when variable from oct file class is displayed in workspace,
John W. Eaton <=
- [Octave-bug-tracker] [bug #55254] clear all crashes when variable from oct file class is displayed in workspace, John W. Eaton, 2019/01/18
- [Octave-bug-tracker] [bug #55254] clear all crashes when variable from oct file class is displayed in workspace, John Donoghue, 2019/01/29