Click here to Skip to main content
15,891,033 members
Home / Discussions / C#
   

C#

 
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 
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 
Disposing an item does not mean that the GC collects it immediately or even frees memory.
The GC tries to keep memory allocation fast/flexible and if your app constantly allocates large objects
for medium/long-lifetime and disposes it, the GC could decide not to free its memory because it awaits
a new object allocation soon.

I would try to force the GC to collect all generations in idle-state.

GC.Collect();
GC.WaitForPendingFinalizers();


If your memory consumption now falls down in idle-state, you know that the GC causes this behaviour
and you should decide if its better to let the GC do it on its own or to force it.

If your memory consumption doesn't fall down then you really should look if you don't use some
unmanaged resources.

Greetings
Covean

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 
GeneralRe: How to check value in IF statement.. Pin
Calla20-Jan-10 22:25
Calla20-Jan-10 22:25 
GeneralRe: How to check value in IF statement.. Pin
Som Shekhar20-Jan-10 22:27
Som Shekhar20-Jan-10 22:27 
AnswerRe: How to check value in IF statement.. Pin
#realJSOP21-Jan-10 0:02
mve#realJSOP21-Jan-10 0:02 
QuestionThreads Pin
P.T.R.K20-Jan-10 16:50
P.T.R.K20-Jan-10 16:50 
AnswerRe: Threads Pin
Luc Pattyn20-Jan-10 16:57
sitebuilderLuc Pattyn20-Jan-10 16:57 

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.