المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Memory consumption problem



C# Programming
01-22-2010, 07:43 AM
Hey guys,

I'm developing an application (a windows service in fact) which occasionally creates a large amount of objects. It's reasonable the service then consumes a lot of memory (op to 500 Mb). However when the service is done processing all objects (which are being disposed after processing) the service still claims the full 500 Mb. I have spent an entire day finding a memory leak in code but this does not seem to be the problem.

Can anybody explain me (or point to a good reliable document) which explains me when memory is being 'released' after a process claimed it? I don't want to mess with the garbage collector because GC should find out when to clear up stuff.

Thanks!

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