Home All Groups Group Topic Archive Search About

Traversing the objects in Memory Heap

Author
12 Jan 2005 7:59 AM
Amanpreet
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

Author
12 Jan 2005 2:04 PM
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..

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

Show quote
"Amanpreet" <Amanpr***@discussions.microsoft.com> wrote in message
news:E59E4EBF-E1B9-4F66-A14D-AFE58D70B267@microsoft.com...
> 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
Author
13 Jan 2005 4:09 AM
Amanpreet
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.

Show quote
"Manoj G [MVP]" wrote:

> 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" <Amanpr***@discussions.microsoft.com> wrote in message
> news:E59E4EBF-E1B9-4F66-A14D-AFE58D70B267@microsoft.com...
> > 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
>
>
>

AddThis Social Bookmark Button