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
 All Forums
 Origin Forum
 Origin Forum
 What is wrong with this script?

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
grahamc Posted - 04/03/2000 : 8:05:00 PM
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.

1   L A T E S T    R E P L I E S    (Newest First)
grahamc Posted - 04/03/2000 : 8:07:00 PM
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.

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000