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
 What is wrong with this script?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

grahamc

Lancaster, England
22 Posts

Posted - 04/03/2000 :  8:05:00 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
I've been having intermittent crash problems, and I've narrowed it down to this section of script;

-----------------
//This is for loading Arrhenius data

window -t data xyxyxy.otw;
open -w D:\Data\Test DLTS data\A28 Device\DS_000_DataMax_YG0.dat;
sec -p 0.1;
window -r %H YMax;
window -i;

window -t data xyxyxy.otw;
open -w D:\Data\Test DLTS data\A28 Device\DS_000_DataMin_YG0.dat;
sec -p 0.1;
window -r %H YMin;
window -i;

window -t data xyxyxy.otw;
open -w D:\Data\Test DLTS data\A28 Device\DS_000_DataMax_XG0.dat;
sec -p 0.1;
window -r %H XMax;
window -i;

window -t data xyxyxy.otw;
open -w D:\Data\Test DLTS data\A28 Device\DS_000_DataMin_XG0.dat;
sec -p 0.1;
window -r %H XMin;
window -i;

------------------

I've tested a simple program that opens Origin and establishes a DDE connection with it. It then sends this script fragment, with a doc -s; doc-n pair and resends indefinitely until Origin crashes. The program waits until Origin has completed execution before resending. So Origin continually loads these four datafiles, deletes them and reloads them.

In the 8 tests I did, I got failures after around 5 iterations, the quickest being three and the longest being 11. The script also crashes around this point when loaded and run manually, via a "run.file" command- though obviously it's not as easy to test an intermittent fault manually.

I've already had to put a sec -p 0.1 in there because data colums were disappearing on load. If I put a sec -p 1, it's possible that reliability increases- the maximum number of iterations rose to 24 before a crash- but it doesn't cure the problem and will make the scripts overall run too slowly.

What's happening and how can I avoid this? Surely there are other people loading many datafiles in quick succession, so it must be something peculiar to this sequence of commands.

grahamc

Lancaster, England
22 Posts

Posted - 04/03/2000 :  8:07:00 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Nasty. This turned out to be a corrupted worksheet template. Appeared to be fine- nothing made it look corrupted- but when I deleted it and recreated it from scratch, the crashing went away.
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