The execution object graph RRS feed

  • Question

  • Out of pure curiosity, is there a way to obtain references to all live objects in the executing application? (For full-trust of course)

    I have thought that if I have a reference to a "good" candidate object, I can use reflection to scan through fields and build an object graph, but only as far as it reaches from the fields of a single object (of course using a dictionary to keep track of visited objects and a queue to store discovered ones). But that leaves out looking through all call stacks and walk through their local fields.

    The CLR profiler is able to do obtain some information through the ProfilerOBJ library written in C which logs significant events, but no runtime information.
    Thursday, March 6, 2008 5:41 PM