[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #44339] deleting uipanel/uicontrol in a script
From: |
jsh |
Subject: |
[Octave-bug-tracker] [bug #44339] deleting uipanel/uicontrol in a script gives invalid handle error |
Date: |
Sat, 21 Feb 2015 23:29:33 +0000 |
User-agent: |
Opera/9.80 (X11; Linux x86_64; Edition Linux Mint) Presto/2.12.388 Version/12.16 |
URL:
<http://savannah.gnu.org/bugs/?44339>
Summary: deleting uipanel/uicontrol in a script gives invalid
handle error
Project: GNU Octave
Submitted by: jsh
Submitted on: Sat 21 Feb 2015 11:29:32 PM GMT
Category: GUI
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: None
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: GNU/Linux
_______________________________________________________
Details:
Creating and subsequently deleting uipanel/uicontrol leads to errors. The
following code
n = 100;
f = figure;
for i=1:n
h = uipanel( 'parent', f );
% h = uicontrol( 'parent', f );
% pause(0.1)
delete(h)
end
leads to "invalid graphics object" errors when running from a m-file (Note!
copying/typing into the command line works fine). Either adding the pause
between creation and deletion, or just not deleting the objects work fine. It
seems to me that the interpreter doesn't wait for the uiobject to finish
creation and tries to delete before its done?
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Sat 21 Feb 2015 11:29:32 PM GMT Name: test.m Size: 126B By: jsh
<http://savannah.gnu.org/bugs/download.php?file_id=33147>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?44339>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Octave-bug-tracker] [bug #44339] deleting uipanel/uicontrol in a script gives invalid handle error,
jsh <=