OriginPro 2020 SR0 (64-bit) 9.7.0.185
Win10 Pro
Hello,
I'm trying to execute a script from a programming tab of a TextButton-type UIM object. The script is the following:
...
loop(...) {
...
switch(...) {
case 1:
...
break;
case2:
...
break;
...
case n:
...
FaultyCommand;
...
break;
case n+1:
...
break;
} //end of switch
...
} //end of loop
Each time I'm trying to run the script, Origin crashes completely - without any error message! But if the "FaultyCommand" is commented out, everything works fine. The particular faulty command can be different - usually any loose dataset operation (resizing, reversing, etc.) using standard methods for dataset-type objects. But the most intriguing (or better to say, annoying) thing is, that this command should not be executed at all during this particular script run!!! The switch value in the loop when the program crashes is not equal to n and cannot take this value during the whole script execution!!! What is the reason for such script behavior? Is it possible to avoid the influence of a non-executing code on the execution?
I would appreciate some help to overcome this obstacle.
Regards,
Alexei