Giter Club home page Giter Club logo

Comments (6)

richardfencel avatar richardfencel commented on August 16, 2024

I found this useful link from a prior incident that answers most of my questions. If anybody has anything else to contribute, please add.

from clrmd.

richardfencel avatar richardfencel commented on August 16, 2024

What I really need is a link to some ClrMd 2.0 sample code.

from clrmd.

timcassell avatar timcassell commented on August 16, 2024

What I really need is a link to some ClrMd 2.0 sample code.

You could take a look at BenchmarkDotNet's usage. Though it might not use all the features you're trying to use.

from clrmd.

richardfencel avatar richardfencel commented on August 16, 2024

Thanks for the recommendation.

I still have one problem I cannot solve. I am trying to get the value of a ClrObject when the object type is not known, i.e. I want to convert a ClrObject to an object. I was able to do that in ClrMd 1.0 at least for primitives. That is, the following worked:

object myObj = someClrType.Getalue(someAddress);

In ClrMd 2.0 I tried:

ClrObject test = someClrType.Heap.GetObject(someAddress);

This works as well in that it returns a ClrObject (the type is a Double which is correct). However, I need the actual value of the double. The debug data for the ClrObject is shown in the attached image.
Snap6

from clrmd.

richardfencel avatar richardfencel commented on August 16, 2024

Sorry, Getalue() should be GetValue()

from clrmd.

richardfencel avatar richardfencel commented on August 16, 2024

I think the way for me to fix this is to determine first the Clrmd ElementType (e.g. "int") and then call one of the Clrmd generic "read" methods using that type, e.g. if the "read" method had the signature Readxxxx<>(), then we would call Readxxxx().

I am going to close this incident now. Thanks to all those who participated.

from clrmd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.