Click to See Complete Forum and Search --> : Why the System file watcher & timer consuming RAM


Quaisar
April 4th, 2004, 01:05 AM
Hi

I am using system file watcher and timer in an application developped in VB.NET

The system file watcher and timer are monitoring a folder that is constantly receiving jpeg images/sec

With the passage of time the two seem to continue a gradual consumption of RAM, till it consumes 400 MB and may tend to take in more.


Does any one know why?

Craig Gemmill
April 4th, 2004, 10:19 AM
You will notice completely different memory usage in managed apps (.net), then unmanaged ones. You may want to take a look at how the Garbage Collector works. (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/html/dotnetgcbasics.asp)

With that being said, I don't think 400MB is normal for what you have described. The fact that you say you have a timer makes me think that you are creating a lot of objects that are not collectible. Can we see what you have in your timer code?