Example #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);
        }
        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);
        }
        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);
                }
            }
        }
Example #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);
        }