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

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

[Octave-bug-tracker] [bug #48186] Deleting a deleted handle


From: Guillaume
Subject: [Octave-bug-tracker] [bug #48186] Deleting a deleted handle
Date: Fri, 10 Jun 2016 09:20:27 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:46.0) Gecko/20100101 Firefox/46.0

Follow-up Comment #2, bug #48186 (project octave):

You get this:


>> delete(42)
Error using delete
Invalid or deleted object.
 
>> delete(pi)
Error using delete
Invalid or deleted object.


In recent Matlab versions, handles are objects:


>> h = figure;
>> delete(h)
>> h
h = 
  handle to deleted Figure


allowing for a second silent deletion as in original post. With older Matlab
versions, relying on doubles to store handles, you get:


>> h = figure;
>> delete(h)
>> delete(h)
??? Error using ==> delete
Invalid handle object.


i.e. the same error message that you get with delete(42).

I might have added confusion to this thread though as the initial problem is
somehow different as older Matlab versions (that behave like Octave regarding
deletion of an already deleted handle) do not crash when the figure containing
the uipanels is closed.

It seems that the code in graphics.cc (__go_delete__ and
delete_graphics_objects) takes care of handles that might have been already
deleted by a callback function but it must miss a case.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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