Click here to Skip to main content
15,917,641 members
Home / Discussions / C#
   

C#

 
GeneralRe: loader lock error using directX sound dll's Pin
rao raja26-Feb-08 14:59
rao raja26-Feb-08 14:59 
GeneralRe: loader lock error using directX sound dll's Pin
Judah Gabriel Himango27-Feb-08 4:32
sponsorJudah Gabriel Himango27-Feb-08 4:32 
QuestionActivator.Create instance - please save my sanity Pin
Nathan Gloyn26-Feb-08 5:31
Nathan Gloyn26-Feb-08 5:31 
GeneralRe: Activator.Create instance - please save my sanity Pin
J a a n s26-Feb-08 5:43
professionalJ a a n s26-Feb-08 5:43 
GeneralRe: Activator.Create instance - please save my sanity Pin
Skippums26-Feb-08 5:47
Skippums26-Feb-08 5:47 
GeneralRe: Activator.Create instance - please save my sanity Pin
Giorgi Dalakishvili26-Feb-08 5:52
mentorGiorgi Dalakishvili26-Feb-08 5:52 
AnswerRe: Activator.Create instance - please save my sanity Pin
Nathan Gloyn26-Feb-08 21:30
Nathan Gloyn26-Feb-08 21:30 
GeneralDataGridView, Memory Usage Pin
Jitse26-Feb-08 5:14
Jitse26-Feb-08 5:14 
Good day

I've been experimenting a bit with the DataGridView, and its memory usage. If you add a high amount of rows to the grid, and then clear it, it apparently won't clear its memory as well. It's as if the rows are still in the memory, but dereferenced. When you populate the grid again, with alot of data, the memory usage keeps on going up, as if he now has two lists of rows. This goes on for a while every time I clear and populate again, until the memory usage gets to a certain amount, then the application freezes for a very short while (some milliseconds) and the memory usage gets reduced back to the normal level of one populated DataGridView.

This is just the GC doing its work, but I didn't know he did it that sporadicly. He also doesn't seem to work in function of time, but in function of total memory usage. He watches how high the memory usage goes, and when it gets to a certain level he finally starts working.

The method GC.Collect() solves this all of course. So now my question is, when you're working with DataGridViews and a high amount of data, is it recommended to actually just always do a GC.Collect after you cleared the grid?

Thanks in advance.
GeneralRe: DataGridView, Memory Usage Pin
Colin Angus Mackay26-Feb-08 5:47
Colin Angus Mackay26-Feb-08 5:47 
GeneralRe: DataGridView, Memory Usage Pin
Jitse26-Feb-08 6:04
Jitse26-Feb-08 6:04 
GeneralRe: DataGridView, Memory Usage Pin
Judah Gabriel Himango26-Feb-08 6:27
sponsorJudah Gabriel Himango26-Feb-08 6:27 
GeneralRe: DataGridView, Memory Usage [modified] Pin
Jitse26-Feb-08 9:04
Jitse26-Feb-08 9:04 
GeneralRe: DataGridView, Memory Usage Pin
Judah Gabriel Himango26-Feb-08 13:02
sponsorJudah Gabriel Himango26-Feb-08 13:02 
GeneralRe: DataGridView, Memory Usage Pin
Jitse27-Feb-08 4:24
Jitse27-Feb-08 4:24 
GeneralSending mails Pin
alok_2k326-Feb-08 4:13
alok_2k326-Feb-08 4:13 
GeneralRe: Sending mails Pin
Judah Gabriel Himango26-Feb-08 4:39
sponsorJudah Gabriel Himango26-Feb-08 4:39 
GeneralRe: Sending mails Pin
alok_2k326-Feb-08 6:05
alok_2k326-Feb-08 6:05 
GeneralRe: Sending mails Pin
Judah Gabriel Himango26-Feb-08 6:26
sponsorJudah Gabriel Himango26-Feb-08 6:26 
GeneralRe: Sending mails Pin
alok_2k326-Feb-08 18:43
alok_2k326-Feb-08 18:43 
GeneralRe: Sending mails Pin
Judah Gabriel Himango27-Feb-08 4:08
sponsorJudah Gabriel Himango27-Feb-08 4:08 
GeneralLinq expressions instead of reflection Pin
Roger Alsing26-Feb-08 4:11
Roger Alsing26-Feb-08 4:11 
QuestionMemory leak? Pin
Harvey Saayman26-Feb-08 3:55
Harvey Saayman26-Feb-08 3:55 
AnswerRe: Memory leak? Pin
J4amieC26-Feb-08 4:31
J4amieC26-Feb-08 4:31 
AnswerRe: Memory leak? Pin
Judah Gabriel Himango26-Feb-08 4:31
sponsorJudah Gabriel Himango26-Feb-08 4:31 
Generalmarshalling a complex structure Pin
cruppstahl26-Feb-08 3:41
cruppstahl26-Feb-08 3:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.