473,321 Members | 1,916 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,321 software developers and data experts.

Data Containers for C#

I'm relatively new to C# and am learning about the various data containers out there in .Net 2.0. In my program I access a read only database and display the data to the user. I'm currently using a dataset since I need to hold the data, and from my knowledge a datareader is only good for one iteration.

I'm finding that my application is consuming a lot of RAM. What tools are there to determine what's consuming this RAM (e.g., the number of controls, the sql query, poor ui design)? Also, does anyone recommend anything other than a dataset?
Jun 15 '07 #1
1 2245
kenobewan
4,871 Expert 4TB
Welcome to TSDN. You may use the datareader to populate your datagrid instead of a dataset, which is heavier on resources. Unless your db is huge then I wouldn't expect a significant effect on ram. Maybe a looping or such problem in your code. I expect monitoring your ram during each process would sufficient to tell you where the problem is. HTH.
Jun 16 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

10
by: Steve | last post by:
Hi all i am just starting to get back into VB and i need a little help. I am writing a program that asks a user to type in a set of numbers/letters (in this case shipping containers). Once the...
2
by: wtnt | last post by:
Hello, I've been using the STL libraries for some time, but still don't know the ins and outs of its implementation. Could this be because there's more than 1 implementation? Does anyone know of...
2
by: graftonfot | last post by:
Hi there, I've programmed in C++ for many years, but I've been away from it for a while. I have some JDK 1.4 code that I need to re-implement in C++. I am wondering, are there any...
1
by: raj via DotNetMonster.com | last post by:
Hi, When I am serializing my object to xml file in c#, my file is like this. This line <?xml version="1.0" encoding="utf-16"?> repeating after every element.My main element is lot after the...
15
by: Nindi73 | last post by:
HI If I define the class DoubleMap such that struct DoubleMap : public std::map<std::string, double>{}; Is there any overhead in calling std::map member functions ? Moreover are STL...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.