Skip to content

Instantly share code, notes, and snippets.

@Criteo-dotnet-blog
Created May 29, 2017 11:02
Show Gist options
  • Save Criteo-dotnet-blog/1a324ec7ca767a9be66bce5368dd4d71 to your computer and use it in GitHub Desktop.
Save Criteo-dotnet-blog/1a324ec7ca767a9be66bce5368dd4d71 to your computer and use it in GitHub Desktop.
val = GetFieldValue(heap, currentTimerQueueTimerRef, "m_state");
ti.StateTypeName = "";
if (val == null)
{
ti.StateAddress = 0;
}
else
{
ti.StateAddress = (ulong)val;
var stateType = heap.GetObjectType(ti.StateAddress);
if (stateType != null)
{
ti.StateTypeName = stateType.Name;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment