1

I want to get the list of live objects defined in my application.

By live objects, I mean every objects created.

For example, let's say there are controls object created in some part of an application and I want to access a particular one by name.

Or I would want to access some private object in some public class where I have no "starting" point of access to the public class object.

There must be a way since it's what a debugger does essentially.

Golem
  • 115
  • 1
  • 5
  • 2
    Looks like an XY problem (http://meta.stackexchange.com/questions/66377/what-is-the-xy-problem). What do you want this functionality for? – Anton Tykhyy Jul 18 '12 at 13:18
  • Similar question: http://stackoverflow.com/questions/2934392/how-to-list-all-managed-objects-in-heap-in-net – dash Jul 18 '12 at 13:22

1 Answers1

1

Not an easy task. I think the closest is the Profiler API. This is another site that is a good reference for profiling API.

Community
  • 1
  • 1
Felice Pollano
  • 32,832
  • 9
  • 75
  • 115