public MatlabExecutionEngine(string path) { Path = path; matlabApp = null; matlabProcess = null; owningProcess = false; eventWaitHandle = new EventWaitHandle(false, EventResetMode.AutoReset); }
/// <summary> /// Acquires control of the process used by the execution engine /// </summary> public override void AcquireProcess() { if (matlabProcess == null) { matlabProcess = MatlabProcessContainer.Instance; this.rcwHandle = GCHandle.Alloc(this.matlabProcess, GCHandleType.Normal); } WaitForOwnership(); // matlabApp.Visible = 0; }