Browse Source

Backported r5302 - Fixed rude-abort of evals

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@5318 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
pull/1/head
David Srbecký 16 years ago
parent
commit
320896e50e
  1. 5
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Control/Eval.cs

5
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Control/Eval.cs

@ -162,7 +162,6 @@ namespace Debugger @@ -162,7 +162,6 @@ namespace Debugger
try {
process.WaitForPause(TimeSpan.FromMilliseconds(500));
if (!Evaluated) {
state = EvalState.EvaluatedTimeOut;
process.TraceMessage("Aboring eval: " + Description);
corEval.Abort();
process.WaitForPause(TimeSpan.FromMilliseconds(500));
@ -174,8 +173,10 @@ namespace Debugger @@ -174,8 +173,10 @@ namespace Debugger
throw new DebuggerException("Evaluation can not be stopped");
}
}
// Note that this sets Evaluated to true
state = EvalState.EvaluatedTimeOut;
}
process.WaitForPause();
process.AssertPaused();
return this.Result;
} catch (ProcessExitedException) {
throw new GetValueException("Process exited");

Loading…
Cancel
Save