11-30-2005 03:00 PM
11-30-2005 03:09 PM
12-01-2005 05:36 AM
It worked great. Thanks.
Where is the proper place (event) to release a sequence file attained by a me.axApplicationMgr.GetEngine().GetSequenceFileEx(path)? I'll be using me.axApplicationMgr.GetEngine().ReleaseSequenceFileEx(file). In my case I want to allow the operator to re-run the application with the same sequence file, but if the operator decides to exit the application (operator interface) I want to do the proper housecleaning. Thanks again.
12-01-2005 10:53 AM
You should call ApplicationMgr.OpenSequenceFile instead of Engine.GetSequenceFileEx (see TestStand Reference Manual>> Chapter 9 Creating and Customizing Operator Interfaces >> Using the TestStand API With TestStand UI Controls).
If you want to close the file explicitly, call ApplicationMgr.CloseSequenceFile. If you don't close the file, the ApplicationMgr will close the file automatically when your application shuts down.
When you call ApplicationMgr.OpenSequenceFile, the file appears in controls that display the list of open files and your application receives an ApplicationMgr.DisplaySequenceFile event for the file.
If you can't use the ApplicationMgr methods, then I think the place to call Engine.ReleaseSequenceFileEx would be in the ApplicationMgr.QueryShutdown event (also see TestStand Reference Manual>> Chapter 9 Creating and Customizing Operator Interfaces >> Using the TestStand API With TestStand UI Controls).