Click here to Skip to main content
15,884,177 members
Home / Discussions / C#
   

C#

 
AnswerRe: Memory consumption problem Pin
dan!sh 20-Jan-10 22:30
professional dan!sh 20-Jan-10 22:30 
GeneralRe: Memory consumption problem Pin
Calla20-Jan-10 22:33
Calla20-Jan-10 22:33 
GeneralRe: Memory consumption problem Pin
Eduard Keilholz20-Jan-10 22:44
Eduard Keilholz20-Jan-10 22:44 
GeneralRe: Memory consumption problem Pin
dan!sh 20-Jan-10 22:58
professional dan!sh 20-Jan-10 22:58 
GeneralRe: Memory consumption problem Pin
Eduard Keilholz20-Jan-10 23:17
Eduard Keilholz20-Jan-10 23:17 
GeneralRe: Memory consumption problem Pin
Martin#20-Jan-10 23:31
Martin#20-Jan-10 23:31 
GeneralRe: Memory consumption problem Pin
Eduard Keilholz21-Jan-10 0:44
Eduard Keilholz21-Jan-10 0:44 
GeneralRe: Memory consumption problem Pin
Martin#21-Jan-10 1:31
Martin#21-Jan-10 1:31 
Hello,

If you really unregister all the events (and I'm sure you do) I think you do not have a memory leak at all.
It's just, like you found out, that you hold a lot of your chunk objects because of the recurse calls.
This forces the GC to move the objects in a next generation.
If your action is done, and no more new objects have to be created, the GC will not see the need of cleaning up the generations.
I would assume, that if you start that action again (in the first implementated version), the 500Mb will not be topped, unless you haven't forgot to unregister the events or holding the objects in an collection for example!

Here[^] is an article, which explains how the GC passes the objects threw the generation levels!

All the best,

Martin

GeneralRe: Memory consumption problem Pin
Eduard Keilholz21-Jan-10 7:40
Eduard Keilholz21-Jan-10 7:40 
GeneralRe: Memory consumption problem Pin
Dave Kreskowiak21-Jan-10 4:30
mveDave Kreskowiak21-Jan-10 4:30 
GeneralRe: Memory consumption problem Pin
Eduard Keilholz21-Jan-10 7:41
Eduard Keilholz21-Jan-10 7:41 
GeneralRe: Memory consumption problem [modified] Pin
Matt444620-Jan-10 23:32
Matt444620-Jan-10 23:32 
GeneralRe: Memory consumption problem Pin
Covean20-Jan-10 23:13
Covean20-Jan-10 23:13 
AnswerRe: Memory consumption problem Pin
Luc Pattyn21-Jan-10 1:30
sitebuilderLuc Pattyn21-Jan-10 1:30 
GeneralRe: Memory consumption problem Pin
dan!sh 21-Jan-10 3:32
professional dan!sh 21-Jan-10 3:32 
GeneralRe: Memory consumption problem Pin
Luc Pattyn21-Jan-10 7:27
sitebuilderLuc Pattyn21-Jan-10 7:27 
GeneralRe: Memory consumption problem Pin
Eduard Keilholz21-Jan-10 7:36
Eduard Keilholz21-Jan-10 7:36 
GeneralRe: Memory consumption problem Pin
Luc Pattyn21-Jan-10 7:39
sitebuilderLuc Pattyn21-Jan-10 7:39 
QuestionInteresting crystal roport problem!? Pin
miss YY20-Jan-10 22:05
miss YY20-Jan-10 22:05 
QuestionHow to check value in IF statement.. Pin
<<Tash18>>20-Jan-10 22:04
<<Tash18>>20-Jan-10 22:04 
AnswerRe: How to check value in IF statement.. Pin
Calla20-Jan-10 22:09
Calla20-Jan-10 22:09 
GeneralRe: How to check value in IF statement.. Pin
<<Tash18>>20-Jan-10 22:17
<<Tash18>>20-Jan-10 22:17 
GeneralRe: How to check value in IF statement.. Pin
Som Shekhar20-Jan-10 22:20
Som Shekhar20-Jan-10 22:20 
GeneralRe: How to check value in IF statement.. Pin
<<Tash18>>20-Jan-10 22:21
<<Tash18>>20-Jan-10 22:21 
JokeRe: How to check value in IF statement.. Pin
Som Shekhar20-Jan-10 22:22
Som Shekhar20-Jan-10 22:22 

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.