コード例 #1
0
        private void Dispose(bool jDisposing)
        {
            if (!this.jDisposed)
            {
                if (jDisposing)
                {
                    // Dispose managed resources.
                    //Component.Dispose();
                    try
                    {
                        jObject.Quit();
                        jObject = null;
                    }
                    catch
                    {
                        jObject = null;
                    }
                }


                // Force garbage collection
                GC.Collect();
            }
            this.jDisposed = true;
        }
コード例 #2
0
        private void jNew()
        {
            try
            {
                int rc = BADRC;

                jObject = new JEXEServerLib.JEXEServer();

                // set J to quit and log input lines
                rc = jObject.Quit();
                rc = jObject.Log(1);

                // hide J window
                // Note: we get a window flash
                // before this command takes effect
                rc = jObject.Show(0);
            }
            catch
            {
                throw;
            }
        }