[Scilab-users] [EXT] Re: Problem with event handler.

Adrian Weeks aweeks at hidglobal.com
Thu Jan 30 17:08:02 CET 2020


Hi Antoine,

Yes, I sent the mail without attachments, then realised my mistake and sent it again with.
If you can't find the second mail please let me know and I'll send it again.

Thank you.

Adrian Weeks
Development Engineer, Hardware Engineering EMEA
Office: +44 (0)2920 528500 | Desk: +44 (0)2920 528523 | Fax: +44 (0)2920 520178
aweeks at hidglobal.com<mailto:aweeks at hidglobal.com>
[HID Global Logo]<http://www.hidglobal.com/>
Unit 3, Cae Gwyrdd,
Green meadow Springs,
Cardiff, UK,
CF15 7AB.
www.hidglobal.com<http://www.hidglobal.com>


From: users <users-bounces at lists.scilab.org> On Behalf Of Antoine Monmayrant
Sent: 30 January 2020 14:21
To: users at lists.scilab.org
Subject: [EXT] Re: [Scilab-users] Problem with event handler.

*** Please use caution this is an externally originating email. ***

Hello Adrian,



I don't see any piece of scilab code attached to your message.
Did you forget it?



Antoine
Le 30/01/2020 à 10:38, Adrian Weeks a écrit :
Hello,

Could someone try running this piece of code to see what's going wrong, please?

The purpose is to set up a display window with an associated event handler.
Function 'Task' contains an endless loop in which some measurements would be made and the results displayed in the window.
A mouse left click in the window should stop the endless loop allowing an exit from function 'Task' and moving on to the following lines of code.

Using Scilab 5.4.1  (I know it's an older version but I've been using it for a long time and it works for me):
If you place the caret at  '// Point 1' and execute with <CTRL>E the code should work correctly as shown in Capture 1.
If you place the caret at '//Point 2' and do the same the loop will work but Scilab will run past  the call to 'Task' and execute the following lines x3, x4, x5 (Capture 2).  I would expect it to stop in function 'Task' until the function is exited in the intended way by the mouse left click.

Using Scilab 6.0.1
Scilab is almost totally unresponsive to the mouse click.  Something goes on in the background and when it does eventually stop the results are like Capture 3, 4 & 5.  The same over-run of function 'Task' occurs.

Using a Dell Optiplex 3060, i3-8100 CPU, Win10 Enterprise.

Am I missing something or is this a genuine bug?
Many thanks.

Adrian Weeks
Development Engineer, Hardware Engineering EMEA
Office: +44 (0)2920 528500 | Desk: +44 (0)2920 528523 | Fax: +44 (0)2920 520178
aweeks at hidglobal.com<mailto:aweeks at hidglobal.com>
[HID Global Logo]<https://nam02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.hidglobal.com%2F&data=02%7C01%7Caweeks%40hidglobal.com%7Cbbc5ab26fff94d3e885108d7a5946d92%7Cf0bdc1c951484f86ac40edd976e1814c%7C0%7C0%7C637159929236512556&sdata=RFCAgA6qGdkHCjsLO0rgoxXeuITe6vly9%2FhTHWGNINQ%3D&reserved=0>
Unit 3, Cae Gwyrdd,
Green meadow Springs,
Cardiff, UK,
CF15 7AB.
www.hidglobal.com<https://nam02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.hidglobal.com%2F&data=02%7C01%7Caweeks%40hidglobal.com%7Cbbc5ab26fff94d3e885108d7a5946d92%7Cf0bdc1c951484f86ac40edd976e1814c%7C0%7C0%7C637159929236512556&sdata=RFCAgA6qGdkHCjsLO0rgoxXeuITe6vly9%2FhTHWGNINQ%3D&reserved=0>





_______________________________________________

users mailing list

users at lists.scilab.org<mailto:users at lists.scilab.org>

http://lists.scilab.org/mailman/listinfo/users<https://nam02.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.scilab.org%2Fmailman%2Flistinfo%2Fusers&data=02%7C01%7Caweeks%40hidglobal.com%7Cbbc5ab26fff94d3e885108d7a5946d92%7Cf0bdc1c951484f86ac40edd976e1814c%7C0%7C0%7C637159929236522553&sdata=m%2BP2x5pC5rmZ2xQKGsWif8FLLSoJ50JEh%2F0gZd5HZgk%3D&reserved=0>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20200130/e2a4d172/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 1751 bytes
Desc: image001.gif
URL: <https://lists.scilab.org/pipermail/users/attachments/20200130/e2a4d172/attachment.gif>


More information about the users mailing list