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...
 
B

bruce barker \(sqlwork.com\)

there is no handy way. the most common approach is to do a binary
serialization to a memory buffer, and measure the buffer size for an
estimate.

-- bruce (sqlwork.com)
 
C

conckrish

Hi Bruce..

Thanx for kind response.Can u jus explain how to perform the
"binary serialization" in my appln. Can u give me simple code samples
for this???

Thanx,
Jacob.
 

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