コード例 #1
0
 public MatlabExecutionEngine(string path)
 {
     Path            = path;
     matlabApp       = null;
     matlabProcess   = null;
     owningProcess   = false;
     eventWaitHandle = new EventWaitHandle(false, EventResetMode.AutoReset);
 }
コード例 #2
0
        /// <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;
        }