Browse Source

Fixed SD2-1102: Debugger thrown 'Process was terminated.' exception when stopping the debugee; (Can not reproduce; guessing)

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@1920 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
David Srbecký 20 years ago
parent
commit
99826d886b
  1. 6
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Threads/Thread.cs

6
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Threads/Thread.cs

@ -301,9 +301,11 @@ namespace Debugger @@ -301,9 +301,11 @@ namespace Debugger
} catch (COMException e) {
// 0x8013132D: The state of the thread is invalid.
// 0x8013134F: Object is in a zombie state
// 0x80131301: Process was terminated.
if ((uint)e.ErrorCode == 0x8013132D ||
(uint)e.ErrorCode == 0x8013134F) {
(uint)e.ErrorCode == 0x8013134F ||
(uint)e.ErrorCode == 0x80131301) {
this.Expire();
return;
} else throw;

Loading…
Cancel
Save