Hi Stephane

Good news, thank you.
Thank you to the other list members for the other responses as well.

Best regards,
Claus

On 22-01-2022 14:24, Stéphane Mottelet wrote:
Hi,

This is fixed for the next release:

https://codereview.scilab.org/#/c/21803/

In the meantime, if you really need it you can download the patched version of findobj.

S.

Le 21 janv. 2022 à 23:54, Samuel Gougeon <sgoug...@free.fr> a écrit :


Hello Claus,

Le 21/01/2022 à 20:58, Claus Futtrup a écrit :
Hi Scilabers

Today I tried to replace xdel(winsid()) in one of my scripts with close(winsid()) because Scilab shows a warning in the console:

Warning: Feature xdel(...) is obsolete and will be permanently removed in Scilab 6.2

Warning: Please use close(...) instead.

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.


The issue comes not from close() but from the change offindobj() that it calls <http://bugzilla.scilab.org/show_bug.cgi?id=13738#c4>, noticeably to perform findobj("figure_id",id) in 6.1.1. It does not impact only <http://bugzilla.scilab.org/16734> close() for this case, that was processed as a special accelerated case <https://codereview.scilab.org/#/c/20953/6/scilab/modules/gui/macros/findobj.sci> in the former findobj().

This downgradingwas reported <http://bugzilla.scilab.org/show_bug.cgi?id=7117#c6> 7 months before releasing 6.1.1, and knowingly ignored, while it is perfectly fixable by restoring the fast special case.



What is the motivation for replacing xdel with close?

Both do the same thing. Scilab does not need duplicates.

Regards
Samuel

_______________________________________________
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users

_______________________________________________
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users

_______________________________________________
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users

Reply via email to