Hi,
The Engine.UnloadAllModules doesnt appear to remove the sequence file from memory. In fact the only action that seems to get out the error listed below. is to exit from TestStand.
When using the ActiveX adapter does this automatically close any references to objects generated.
An error occurred in the 'Save Sequence File' step of the 'MainSequence' sequence in 'NewSequenceFile.seq'.
An exception occurred calling 'Save' in 'SequenceFile' of 'TestStand API 1.0'
Unable to save sequence file as 'c:\temp\my sequence.seq' because a sequence file with that path is already loaded.
Source: TSAPI
ActiveX automation server exception. Error Code: -17811
(This error generated by following steps in comment to Danh question.)
Adding an addition ReleaseSequ
enceFile step to ensure reference was unloaded only produce the following error -
[An error occurred in the 'Release SequenceFile_Copy' step of the 'MainSequence' sequence in 'NewSequenceFile.seq'.
An exception occurred calling 'ReleaseSequenceFile' in 'IEngine' of 'TestStand API 1.0'
Operation failed for sequence file ''.
File was unloaded from the TestStand Engine.
Source: TSAPI
ActiveX automation server exception. Error Code: -17811].
When the sequence was run again the first error occurred for the NewSequenceFile step. But the error for the ReleaseSequenceFile clearly showed that the sequencefile was unloaded.
confused Ray Farmer
Regards
Ray Farmer