Browse Source

Fixed "Cannot use JMC on this code (likely wrong JIT settings)."

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5265 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
pull/1/head
David Srbecký 16 years ago
parent
commit
8f0971bf70
  1. 13
      src/AddIns/Debugger/Debugger.Core/Module.cs

13
src/AddIns/Debugger/Debugger.Core/Module.cs

@ -5,9 +5,11 @@
// <version>$Revision$</version> // <version>$Revision$</version>
// </file> // </file>
using Debugger.Interop;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Runtime.InteropServices;
using Debugger.Interop;
using Debugger.Interop.CorDebug; using Debugger.Interop.CorDebug;
using Debugger.Interop.CorSym; using Debugger.Interop.CorSym;
using Debugger.Interop.MetaData; using Debugger.Interop.MetaData;
@ -226,7 +228,16 @@ namespace Debugger
this.CorModule2.SetJMCStatus(0, 0, ref unused); this.CorModule2.SetJMCStatus(0, 0, ref unused);
return; return;
} }
try {
this.CorModule2.SetJMCStatus(1, 0, ref unused); this.CorModule2.SetJMCStatus(1, 0, ref unused);
} catch (COMException e) {
// Cannot use JMC on this code (likely wrong JIT settings).
if ((uint)e.ErrorCode == 0x80131323) {
process.TraceMessage("Cannot use JMC on this code. Release build?");
return;
}
throw;
}
} }
public void ApplyChanges(byte[] metadata, byte[] il) public void ApplyChanges(byte[] metadata, byte[] il)

Loading…
Cancel
Save