Click here to Skip to main content
15,911,789 members
Home / Discussions / C#
   

C#

 
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 
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 
You could try Batch to see if it solves anything, might be interesting to note.

FWIW, we've had a problem with the garbage collector here where our server app will use 500-700MB of memory before the garbage collector kicks in and brings it back down to 80MB. We've even had occassions where the app will be eating 1GB+ of memory and starts throwing OutOfMemoryExceptions until we force a GC. It's really insane. Unfortunately, the only way we were able to get around this is to force a GC key spots in the code. This isn't typical -- we've never seen the above issue on any other applications, so it may be a bug in our code somehow...

We shouldn't have to do this, and sometimes I wonder if the GC is being too lazy, or in the above case, not working at all.

Oddly, if I force 1 or 2 garbage collections, the GC seems able to handle everything from there on out.

I guess I'd recommend forcing a GC in rare scenarios like the one you describe above, where lots of memory suddenly is freed and should be collected immediately.


Tech, life, family, faith: Give me a visit.
I'm currently blogging about: Upon this disciple I'll build my new religion?
The apostle Paul, modernly speaking: Epistles of Paul

Judah Himango


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 
GeneralRe: marshalling a complex structure Pin
J a a n s26-Feb-08 5:33
professionalJ a a n s26-Feb-08 5:33 
GeneralRe: marshalling a complex structure Pin
cruppstahl26-Feb-08 5:50
cruppstahl26-Feb-08 5:50 
GeneralRunning Single Instance For C# Pin
tr_thorn26-Feb-08 3:09
tr_thorn26-Feb-08 3:09 
GeneralRe: Running Single Instance For C# Pin
Bekjong26-Feb-08 3:27
Bekjong26-Feb-08 3:27 
GeneralRe: Running Single Instance For C# Pin
DaveyM6926-Feb-08 4:36
professionalDaveyM6926-Feb-08 4:36 

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.