09-06-2022 08:09 PM
I am implementing operator interface in C# based on Teststand sample.
In MainForm_Load(), I use [axApplicationMgr.OpenSequenceFile(mySeqFile);] to open sequence file.
However, I registered event handler for axApplicationMgr.SequenceFileOpened event and found the event handler was called twice.
The first time is mySeqFile and the second time is the previously opened test sequence file.
I tried to call CloseAllSequenceFiles() before closing the application but the problem remains.
Could anyone please tell me the reason and how to resolve it?
Solved! Go to Solution.
09-07-2022 08:30 AM
Hello zhpy,
just a wild guess, but is there any chance mySeqFile refers to your previously opened sequence file?
e.g. mySeqFall makes sequence calls to sequences of the other file?
So the other sequence file will implicitly be loaded as part of the sources of mySeqFile.
Stefan
09-07-2022 12:00 PM
Sounds like you might want to look at ApplicationMgr.ReloadSequenceFilesOnStart
09-08-2022 01:34 AM
Thanks for your reply, Stefan.
I tried to open different files.
09-08-2022 01:37 AM
Thank you, James.
I set ReloadSequenceFilesOnStart to ReloadFiles.ReloadFile_None before axApplicationMgr.Start();
Then the problem was resolved!
Thanks so much!