Browse Source

fix COMException when no entry point was found.

pull/15/head
Eusebiu Marcu 15 years ago
parent
commit
1c22e596a1
  1. 5
      src/AddIns/Debugger/Debugger.Core/Process.cs

5
src/AddIns/Debugger/Debugger.Core/Process.cs

@ -639,6 +639,8 @@ namespace Debugger @@ -639,6 +639,8 @@ namespace Debugger
{
if (BreakAtBeginning) {
if (e.Item.SymReader == null) return; // No symbols
try {
// create a BP at entry point
uint entryPoint = e.Item.SymReader.GetUserEntryPoint();
if (entryPoint == 0) return; // no EP
@ -654,6 +656,9 @@ namespace Debugger @@ -654,6 +656,9 @@ namespace Debugger
breakpoint.Remove();
breakpoint = null;
};
} catch {
// the app does not have an entry point - COM exception
}
BreakAtBeginning = false;
}
}

Loading…
Cancel
Save