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 for Programming
 Forum for Origin C
 automation example problem
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

antekb

Poland
Posts

Posted - 02/02/2007 :  09:04:41 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version :7 - SR 2
Operating System:Win XP SP2
Hi
I try to analyze/get familiar=LEARN/ with Origin C so I want automation.c program to run.
I did every step according to tutorial, but when I called the program with:
 "Process %yTutorial\Sample.TXT" 
what I got was:

1> Process %yTutorial\Sample.TXT
Processing file: SAMPLE .......failed to find object during method call
Command Error!


Compiler points just one line below void (with that error)
void Process(string strFileName)
and to:
ffDataFile.ReadString(strSampleID);

What can cause such an error?

Thanks in advance!!

Mike Buess

USA
3037 Posts

Posted - 02/02/2007 :  09:26:31 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
First thing I'd try is update to SR4. Run Help>Check for Updates or go here...

http://www.originlab.com/index.aspx?s=9&lm=76

Mike Buess
Origin WebRing Member

Edited by - Mike Buess on 02/02/2007 09:31:32 AM
Go to Top of Page

antekb

Poland
Posts

Posted - 02/02/2007 :  12:20:02 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Mike
there is a problem with this-I'm using an academic (network) license.
From what I know - there is a problem with applying SP4 on a network - I have this information from a person who is responsible for this (some problem with licence number...?? ))

But thanks a lot for help!
Go to Top of Page

Mike Buess

USA
3037 Posts

Posted - 02/02/2007 :  12:58:17 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
The Automation example in SR4 is not launched from script window but rather by drag-and-dropping the data files onto Origin's program window. Furthermore, all files involved are in the Samples\Programming\Automation\ subfolder. Apparently your example in SR2 differs from mine in SR4 so I'm afraid I can't help.

Mike Buess
Origin WebRing Member
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