473,408 Members | 1,772 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

Finding memory of a Datatable at runtime....

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

Apr 18 '06 #1
2 1021
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)

<co*******@gmail.com> wrote in message
news:11*********************@j33g2000cwa.googlegro ups.com...
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...

Apr 18 '06 #2
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.

Apr 19 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: dudi | last post by:
I am encountering the following strange problem which causes the application to use more memory then it should. I have 5 database tables. lets pretend I want to load each one of them into a...
4
by: David K | last post by:
we are having a problem when trying to serilalize and deserialize DataTable When replacing the container to be ListArray or HashTable everything works fine The code is very straight forward (...
10
by: VM | last post by:
How can I limit the use of the PC's virtual memory? I'm running a process that basically takes a txt file and loads it to a datatable. The problem is that the file is over 400,000 lines long (77...
5
by: Terry Olsen | last post by:
I have an in-memory DataTable with about 35,000 rows. I have an IP address column that is populated and a hostname column that is not. I want to be able to quickly update the hostname column so...
1
by: conckrish | last post by:
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...
2
by: Niyazi | last post by:
Hi everyone, I have 5 string in my array that I get from MS Access DB. Public mDov(0) as string and I fill with my for loop. The result as shown below mDov(0) = "ABC_01" mDov(1) = "ABC_02"...
3
by: George1776 | last post by:
I'm seeing some unexpected behavior in Framework 2.0 / IIS 5.1 in high memory usage situations. The first problem I had is that the default machine.config for Framework 2.0 does not include a...
4
by: muralibala68 | last post by:
Hi, Is there a way to find the total size of the DOMDocument created using xerces C++ API (without serializing it) ? Thanks.
14
by: Joe | last post by:
I'm trying to track down where objects are referenced because I want to clean up the memory when I'm done with them. I thought I found all references but it doesn't seem that way because calling...
275
by: Astley Le Jasper | last post by:
Sorry for the numpty question ... How do you find the reference name of an object? So if i have this bob = modulename.objectname() how do i find that the name is 'bob'
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.