From 9b5f63e816a8e4e5898c6e89cdb939682e152bc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Srbeck=C3=BD?= Date: Tue, 8 Dec 2009 19:32:41 +0000 Subject: [PATCH] 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 --- .../Debugger.Core/Project/Src/Control/Process-StateControl.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Control/Process-StateControl.cs b/src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Control/Process-StateControl.cs index c8e3ed977d..f667c07921 100644 --- a/src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Control/Process-StateControl.cs +++ b/src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Control/Process-StateControl.cs @@ -105,6 +105,7 @@ namespace Debugger /// Sets up the eviroment and raises user events internal void RaisePausedEvents() { + AssertPaused(); DisableAllSteppers(); CheckSelectedStackFrames(); SelectMostRecentStackFrameWithLoadedSymbols(); @@ -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(); }