I find several difficulties when writing scripts. Sometimes Origin crashes when I run one, usually due to some minor error that I promptly detect. But one that I don't understand at all is related with comments. In one of my scripts, for example, the following line, right after a getnumber, goes fine
nump=nump-1;
but this other hangs the program
nump=nump-1; //En realidad no son puntos, sino intervalos
The error message I receive is in Spanish, since thus is my Windows, but says something like "This program has done an invalid operation..." for two times, and Origin crashes. Just due to the comment!
It may be some stupid error that I don't detect but... isn't it too drastic that a simple (hypothetical) syntax error can crash the program?
This may be not enough information. I am running Origin 6.0 Patch 1. I've tried this at least in two different PC with Win98. If you want to download my script (1.8 kB) and take a look at it, you will see that it only works fine if you delete any of the lines that I mark with (*). You just need to delete one line to make it work, any of them, but I can not see any error there! All brackets are properly closed, all lines end with semicolon... as far as I can see. Anyway, it could be some error of this kind, but to get a program crash as a result seems too drastic.
Run my script with run.section(test.ogs,s).
Any tip?
Jose.
[This message has been edited by Jose (edited 03-24-2000).]