02-01-2007 05:54 AM
01-30-2009 02:50 PM
While looking for an answer to the question you asked I saw your post and wanted to share my findings even if it's been quite a while since you posted it.
GetProjectDir does not return the correct dll location when you are using TestStand to call functions from the dll.
It does not matter whether you use the sequence editor or the default operator interface.
I tried GetDir function. If you run your sequence from the TestStand editor, it returns a value similar to GetProjectDir.
However, when you run from the operator interface, the dll location is correctly returned by GetDir.
This looked useful to me at first but then I realized this would require extra overhead and problems so I did not use it.
This matter is still a nuisance for me.
As a workaround, I started passing the value of RunState.SequenceFile.Path to my functions.
Since I generally keep the dll and the seq file together in the same folder, this method works for me.