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: Thu, 9 Jun 2016 16:23:53 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:46.0) Gecko/20100101 Firefox/46.0

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

                 Summary: Deleting a deleted handle
                 Project: GNU Octave
            Submitted by: gyom
            Submitted on: Thu 09 Jun 2016 04:23:51 PM GMT
                Category: GUI
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: None
                  Status: None
             Assigned to: None
         Originator Name: Guillaume
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: Any

    _______________________________________________________

Details:

Here is a simplified version of a situation I came across:


F = figure('Units','normalized');
uipanel(F,'Position',[0 0 0.45 1], 'DeleteFcn','delete(allchild(gcbf))');
uipanel(F,'Position',[0.55 0 0.45 1]);


Closing the figure removes the right panel then crashes with this error
message:


error: delete: first argument must be a filename or graphics handle
error: parse error
error: called from
    delete at line 63 column 5
    delete at line 60 column 5
    closereq at line 42 column 5


In particular, with Octave:


>> h=figure;
>> delete(h)
>> delete(h)
error: delete: first argument must be a filename or graphics handle
error: called from
    delete at line 63 column 5


whereas in Matlab:


>> h=figure;
>> delete(h)
>> delete(h)





    _______________________________________________________

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]