Traversing the objects in Memory Heap

G

Guest

I want a way to traverse the objects in Memory Heap in my .NET application.

I used System.GC class but it could only provide me with the function that
returns the memory allocated, but couldn't provide me with the list of all
the alive objects.

Thanks
 
M

Manoj G [MVP]

I am afraid that is not possible from your managed code as such. You could
however run any profiler to monitor the heap..
 
G

Guest

Thanks Manoj, if not from the managed code can this be done from a C program.
And if yes, could you please help me find information on the topic.

Manoj G said:
I am afraid that is not possible from your managed code as such. You could
however run any profiler to monitor the heap..

--
HTH,
Manoj G
[MVP , Visual Developer - Visual Basic ]
http://msmvps.com/manoj/

Amanpreet said:
I want a way to traverse the objects in Memory Heap in my .NET application.

I used System.GC class but it could only provide me with the function that
returns the memory allocated, but couldn't provide me with the list of all
the alive objects.

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top