05-10-2006 07:42 PM
When I run Teststand distribution on the target system, I can’t write to the station globals from my custom application that uses the Teststand engine. The following are the facts:
I am at a total loss. Any ideas?
Todd
05-11-2006 12:50 AM
Hi,
When you are running as a user (operator), does your windows environment restrict access? Maybe the ini file is readonly.
Regards
Ray Farmer
05-11-2006 09:43 AM
05-11-2006 10:39 AM
Hi,
Could you post a small example sequencefile that shows the problem.
Regards
Ray Farmer
05-11-2006 11:18 AM
Inside my custom application EXE that launches the teststand engine, the following call works:
tsErrChkMsgPopup(TS_PropertySetValString (m_oGlobals, &errorInfo, "TestConsoleInfo.Operator", 0, sText));
The above call uses a globals object
Inside the DLL, that is invoked by the sequence file being executed by my custom application, the following function fails with totally bogus info in the tsiErrorinfo structure. And yes, the sequence handle is valid because this same sequence handle is used to read from the station globals, we just can't write to the station globals.
iStatus = TS_PropertySetValBoolean(g_iTSseqHandle, &tsiErrorinfo,
"StationGlobals.ErrorInfo.CurrentError.Occured",
0, 1);
The above call uses a sequence object
Todd
05-11-2006 03:28 PM