| | |
| | | using NationalInstruments.TestStand.Interop.API; |
| | | using NationalInstruments.TestStand.Interop.UI.Ax; |
| | | using System; |
| | | using System.Diagnostics; |
| | | using System.Runtime.InteropServices; |
| | | |
| | | namespace Plugin.TsSupport |
| | | { |
| | |
| | | |
| | | public bool ReleaseSeqFile() |
| | | { |
| | | if (testSeq != null) |
| | | if (this.testSeq != null && this.engine?.ReleaseSequenceFileEx(this.testSeq, 4) == true) |
| | | { |
| | | return engine?.ReleaseSequenceFileEx(testSeq, 4) == true; |
| | | Marshal.ReleaseComObject(this.testSeq); |
| | | this.testSeq = null; |
| | | } |
| | | return true; |
| | | |
| | | if (this.modeSeq != null && this.engine?.ReleaseSequenceFileEx(this.modeSeq, 4) == true) |
| | | { |
| | | Marshal.ReleaseComObject(this.modeSeq); |
| | | this.modeSeq = null; |
| | | } |
| | | this.engine?.UnloadAllModules(); |
| | | return this.testSeq == null && this.modeSeq == null; |
| | | } |
| | | |
| | | public void SetContext(object context) |