The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum
 Origin Forum
 script causes Origin 6.0 crash
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Markus

Germany
29 Posts

Posted - 03/22/2000 :  8:35:00 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
In Origin 6.0 SR1 on Win-NT4.0with SP5 I try to open existing projects on a network drive (files are not write-protected) within a loop and perform some calculations, then writing the results of the calculations into a worksheet that I created before and set as a system window to keep open during the loop.
In Origin 5.0 on the same machine it works fine but in Origin 6.0 as soon as the project should be opened and I can see the frame of the graph in the project to open I get a crash. The script -with comments- I use is:

%j=00;%m=03;k=31;%t=01;%B=networkpath;
win -t data origin sfcwi%j%m;
sfcwi%j%m!page.sysWin=1;
#works fine till here

loop (count,$(%t),k)
{
doc -s;
doc -o %B\filename%t.opj;
#path,filename OK
#status is 'Appending to projekt UNTITLED'
#run.section(,calculation);
if $(%t)<9 %t=0$($(%t)+1);
else %t=$($(%t)+1);
};

Again, in 5.0 this works, why not in 6.0?

Thanks in advance
Markus

Laurie

USA
404 Posts

Posted - 03/22/2000 :  3:39:00 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Markus,

The crash is a result of having a system window open when opening a new project. This problem has been entered in our tracking system.

For now, you could have your script send the results to the Script Window. Then at the end you can export this file as a text file.

--------------
Laurie
Microcal Technical Support

Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000