void DnEval_EvalEvent(object sender, EvalEventArgs e, DnEval eval) { if (eval == null || sender != eval) { return; } if (eval.EvalTimedOut) { EvalDisabled = true; } if (callingEvalComplete) { return; } callingEvalComplete = true; if (!dispatcher.HasShutdownStarted && !dispatcher.HasShutdownFinished) { dispatcher.BeginInvoke(DispatcherPriority.Send, new Action(() => { callingEvalComplete = false; if (ProcessState == DebuggerProcessState.Paused) { Debugger.SignalEvalComplete(); } })); } }
void DnEval_EvalEvent(object sender, EvalEventArgs e, DnEval eval) { if (eval == null || sender != eval) return; if (eval.EvalTimedOut) evalDisabled = true; if (callingEvalComplete) return; callingEvalComplete = true; var app = App.Current.Dispatcher; if (app != null && !app.HasShutdownStarted && !app.HasShutdownFinished) { app.BeginInvoke(DispatcherPriority.Send, new Action(() => { callingEvalComplete = false; if (ProcessState == DebuggerProcessState.Stopped) Debugger.SignalEvalComplete(); })); } }