I'm working on a .net application with VS in C#. I use a bunch of DataGridView's, and when the application uses about 8 of them with about 6 columns and 2000 rows each, the memory used, according to the task manager is about 1.5g. Is that how is supposed to be or could I be doing something wrong?
+2
A:
Use a memory profiler to see where the memory has gone.
There are several:
- One as part of the performance tools which are in the higher levels of VS
- SciTech - http://memprofiler.com/
- JetBrains - http://www.jetbrains.com/profiler/
You can probably start with an evaluation version to see if you get on with either of the last two.
Will Dean
2010-09-20 07:27:33
+2
A:
Well, you're storing a lot of data (16K rows, what's the data size of each row?), I wouldn't wonder. You could use the virtual mode, that saves a lot of memory.
Also, have a look at the very good ObjectListView (opensource on sourceforge).
vulkanino
2010-09-20 07:28:58
of course, but we don't know the size of his data. also, in the task manager he can't see the memory used by only the datagrids, he sees the total memory used by the whole application. to test he could create an empty app with only the datagrids.
vulkanino
2010-09-20 09:46:02