コード例 #1
0
        public bool ConnectToDebugEngine()
        {
            if (DebugServerEngine == null)
            {
                DebugServerEngine = new DebugServerEngine();
                DebugServerEngine.SetGlobalDispatch(GlobalDispatch);
            }

            for (int attempt = 0; attempt < 100; attempt++)
            {
                Thread.Sleep(100);

                if (DebugServerEngine.IsConnected)
                {
                    return(true);
                }

                try
                {
                    Connect();
                }
                catch
                {
                }
            }

            Console.Write("Unable to connect to DebugEngine");

            return(false);
        }
コード例 #2
0
        public bool ConnectToDebugEngine()
        {
            if (DebugServerEngine == null)
            {
                DebugServerEngine = new DebugServerEngine();
                DebugServerEngine.SetGlobalDispatch(GlobalDispatch);
            }

            for (int attempt = 0; attempt < 25; attempt++)
            {
                if (DebugServerEngine.IsConnected)
                {
                    return(true);
                }

                try
                {
                    Connect();
                }
                catch
                {
                }

                Thread.Sleep(50);
            }

            return(false);
        }
コード例 #3
0
        public void ConnectToDebugEngine()
        {
            if (debugServerEngine == null)
            {
                debugServerEngine = new DebugServerEngine();
                debugServerEngine.SetGlobalDispatch(GlobalDispatch);
            }

            while (!debugServerEngine.IsConnected)
            {
                if (retries > MaxRetries)
                {
                    fatalError = true;
                    return;
                }

                retries++;
                ready     = false;
                imageSent = false;

                try
                {
                    Connect();
                }
                catch
                {
                    Thread.Sleep(100);
                }
            }
        }
コード例 #4
0
        private void MainForm_Load(object sender, EventArgs e)
        {
            dockPanel.SuspendLayout(true);
            connectionProperties.Show(dockPanel, DockState.DockLeft);
            dispatchOutput.Show(connectionProperties.Pane, DockAlignment.Bottom, 0.40);

            methodCaller.Show(dockPanel, DockState.DockRight);

            dockPanel.ResumeLayout(true, true);
            DebugEngine.SetGlobalDispatch(Dispatch);
        }