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 of findobj() that it 
> calls, noticeably to perform findobj("figure_id",id) in 6.1.1.
> It does not impact only close() for this case, that was processed as a 
> special accelerated case in the former findobj().
> This downgrading was reported 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

Reply via email to