Finding memory of a Datatable at runtime....

C

conckrish

Hi all,

Can anyone tell me how to find out the memory used by a
DataTable at runtime? I am appending lot of data to datatable at
runtime.I have to measure this memory comsumption programatically...
Plz help me...

Thanx in advance...

Jacob...
 
I

Ignacio Machin \( .NET/ C# MVP \)

Hi,


While you can know how much memory your app is consuming knowing exactly how
much a structure as a datatable consume is very difficult. unless all your
columns are of value type .

My advise is to just check the total memory consuption of the program.
 

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