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: