Traversing the objects in Memory Heap

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
I am afraid that is not possible from your managed code as such. You could
however run any profiler to monitor the heap..
 
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
 
Back
Top