You could use the windows Performance Monitor and/or the PerformanceCounter
class to keep track of such memory issues.
Here's more info:
[url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vboriIntroductionToMonitoringFrameworkFeatures.asp[/url]
[url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbwlkenumeratingperformancecountersonserverstepbys tep.asp[/url]

--
I hope this helps,
Steve C. Orr, MCSD
[url]http://Steve.Orr.net[/url]


"BH" <bobatkpmg> wrote in message
news:ugHFnKlTDHA.2260TK2MSFTNGP12.phx.gbl...
> I'd like to compare the memory consumption of the instances of two
different
> classes. It's not part of the application, but I'd like to find out so I
> can make a better decision on which one to use, e.g. between a DataTable
and
> an XmlDoent, when either one works. Does VS.NET or the Framework
provide
> a way to check at runtime?
>
> Thanks a lot
>
>