This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// TODO: encapsulate runtime session, store heap, common general purpose types, stats, etc. | |
static ClrRuntime _runtime; | |
void Main() | |
{ | |
DataTarget _target = DataTarget.LoadCrashDump("C:\\Temp\\MEM.DMP"); | |
_target.SetSymbolPath(Environment.GetEnvironmentVariable("_NT_SYMBOL_PATH")); | |
var clrVer = _target.ClrVersions[0]; | |
string dac = clrVer.TryGetDacLocation(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
delegate void SignalHandler(object, SignalEventArgs); | |
delegate void SignalErrorHandler(object, SignalErrorEventArgs); | |
interface ISignalRecipient { | |
void ProcessSignal(object sender, SignalEventArgs e); | |
void ProcessError(object sender, SignalErrorEventArgs e); | |
} | |
interface ISignalSource { | |
event SignalHandler SignalOccurred; |
NewerOlder