Browse Source

Backported r5293 - Hopefully fixed "Process not synchronized." at ICorDebugThread.GetUserState

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@5314 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
pull/1/head
David Srbecký 16 years ago
parent
commit
9b5f63e816
  1. 3
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Control/Process-StateControl.cs

3
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Control/Process-StateControl.cs

@ -105,6 +105,7 @@ namespace Debugger @@ -105,6 +105,7 @@ namespace Debugger
/// <summary> Sets up the eviroment and raises user events </summary>
internal void RaisePausedEvents()
{
AssertPaused();
DisableAllSteppers();
CheckSelectedStackFrames();
SelectMostRecentStackFrameWithLoadedSymbols();
@ -335,7 +336,7 @@ namespace Debugger @@ -335,7 +336,7 @@ namespace Debugger
if (timeLeft <= TimeSpan.FromMilliseconds(10)) break;
//this.TraceMessage("Time left: " + timeLeft.TotalMilliseconds);
debugger.MTA2STA.WaitForCall(timeLeft);
debugger.MTA2STA.PerformCall();
debugger.MTA2STA.PerformAllCalls();
}
if (this.HasExited) throw new ProcessExitedException();
}

Loading…
Cancel
Save