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

C#

 
QuestionMemory consumption problem Pin
Eduard Keilholz20-Jan-10 22:20
Eduard Keilholz20-Jan-10 22:20 
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 
Hey Martin,

Thanks for your reply.. This is what happends

A file becomes 'active'. As soon as a byte becomes active, the 'managing' class registers to three events (Completed, ProcessChanged and ErrorOccured). As soon as ProcessChanged is called, the 'active' file should start handling the next file part. As soon as Completed or ErrorOccured is fired, the 'managing' unregisters for the active file's events and a new file becomes 'active'. This process starts over and over again untill all files are completely processed.

Now the ProcessChanged imidiately called the 'next file part' method which caused a recursive bunch of code. This caused the extreme large amount of memory consumption since some files are fairly large. I changed this so the recursion doesn't take place anymore. My Windows Service now claims about 27 Mb tops, in stead of the previous 500 Mb.

I'll be running the memory profiler soon. Thanks for the interest!

.: I love it when a plan comes together :.
http://www.zonderpunt.nl

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 
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 

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.