<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div dir="ltr"></div><div dir="ltr">Hi,</div><div dir="ltr"><br></div><div dir="ltr">This is fixed for the next release:</div><div dir="ltr"><br></div><div dir="ltr"><a href="https://codereview.scilab.org/#/c/21803/">https://codereview.scilab.org/#/c/21803/</a></div><div dir="ltr"><br></div><div dir="ltr">In the meantime, if you really need it you can download the patched version of findobj.</div><div dir="ltr"><br></div><div dir="ltr">S.</div><div dir="ltr"><br><blockquote type="cite">Le 21 janv. 2022 à 23:54, Samuel Gougeon <sgougeon@free.fr> a écrit :<br><br></blockquote></div><blockquote type="cite"><div dir="ltr">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<div class="moz-cite-prefix">Hello Claus,<br>
<br>
Le 21/01/2022 à 20:58, Claus Futtrup a écrit :<br>
</div>
<blockquote type="cite" cite="mid:7e9a0cb1-ba6b-606b-021d-3e257ead55ff@gmail.com">Hi
Scilabers
<br>
<br>
Today I tried to replace xdel(winsid()) in one of my scripts with
close(winsid()) because Scilab shows a warning in the console:
<br>
<br>
Warning: Feature xdel(...) is obsolete and will be permanently
removed in Scilab 6.2
<br>
<br>
Warning: Please use close(...) instead.
<br>
<br>
I am negatively surprised that the close() command takes a long
time to execute with 5-10 windows open (a few seconds per window).
The xdel() command can do it in a split second.
<br>
<br>
</blockquote>
<br>
The issue comes not from close() but from the change of<a moz-do-not-send="true" href="http://bugzilla.scilab.org/show_bug.cgi?id=13738#c4">
findobj() that it calls</a>, noticeably to perform
findobj("figure_id",id) in 6.1.1.<br>
It does <a moz-do-not-send="true" href="http://bugzilla.scilab.org/16734">not impact only</a>
close() for this case, that was processed <a moz-do-not-send="true" href="https://codereview.scilab.org/#/c/20953/6/scilab/modules/gui/macros/findobj.sci">as
a special accelerated case</a> in the former findobj().<br>
<p>This downgrading<a moz-do-not-send="true" href="http://bugzilla.scilab.org/show_bug.cgi?id=7117#c6"> was
reported</a> 7 months before releasing 6.1.1, and knowingly
ignored, while it is perfectly fixable by restoring the fast
special case.</p>
<br>
<blockquote type="cite" cite="mid:7e9a0cb1-ba6b-606b-021d-3e257ead55ff@gmail.com">
<br>
What is the motivation for replacing xdel with close?
<br>
</blockquote>
<br>
Both do the same thing. Scilab does not need duplicates.<br>
<br>
Regards<br>
Samuel<br>
<br>
<span>_______________________________________________</span><br><span>users mailing list</span><br><span>users@lists.scilab.org</span><br><span>http://lists.scilab.org/mailman/listinfo/users</span><br></div></blockquote></body></html>