private void stepBt_Click(object sender, EventArgs e) { if (this.InvokeRequired) { dstepBt_Click d = new dstepBt_Click(stepBt_Click); object[] args = { sender, e }; this.Invoke(d, args); } else { if (AcceptedEmulator != null) { if (AcceptedEmulator.IsConnected) { this.mainForm.cgEeditor1.SetDebuggerAtLine(-1); AcceptedEmulator.Send("STEP\n"); } } } }