From 5e51e69c22f91f2debdacd02514be51b679cbc60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Srbeck=C3=BD?= Date: Thu, 21 Sep 2006 19:01:56 +0000 Subject: [PATCH] Fixed SD2-1111: Debugger's form can be shown after the debug process has been stopped git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@1837 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61 --- .../Project/Src/Service/WindowsDebugger.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/AddIns/Misc/Debugger/Debugger.AddIn/Project/Src/Service/WindowsDebugger.cs b/src/AddIns/Misc/Debugger/Debugger.AddIn/Project/Src/Service/WindowsDebugger.cs index 61a8f4e00d..d85749bacf 100644 --- a/src/AddIns/Misc/Debugger/Debugger.AddIn/Project/Src/Service/WindowsDebugger.cs +++ b/src/AddIns/Misc/Debugger/Debugger.AddIn/Project/Src/Service/WindowsDebugger.cs @@ -418,7 +418,14 @@ namespace ICSharpCode.SharpDevelop.Services JumpToCurrentLine(); - switch (ExceptionForm.Show(e.Exception)) { + Debugger.Process process = this.DebuggedProcess; + + ExceptionForm.Result result = ExceptionForm.Show(e.Exception); + + // If the process was killed while the exception form was shown + if (process.HasExpired) return; + + switch (result) { case ExceptionForm.Result.Break: break; case ExceptionForm.Result.Continue: