Multiple GC.Collect Calls...
- From: ben.heebner@xxxxxxxxx
- Date: Wed, 24 Oct 2007 08:20:02 -0700
Howdy everyone. I've been looking online for the past few week about
calls to the garbage collector in .NET. Current I'm using code that
through inheirtance is using a class that invokes the GC.Collect call
every 10 minutes. I'm working on a dataserver and the genius that put
in the GC.Collect code didn't know what they were doing. They knew
they had a memeory leak and decided that it was probably the
inefficiency of the .NET Grabage Collector and not thei crappy code
(simply amazing). Anyways, I was wondering what the implications of
calling the GC.Collect method would be if you didn't then make the
GC.WiatForPendingFinalizers call? Would it just queue up all the
calls and when the garbage collector does run it'll run once for every
time you asked it to run?
I'd like some good ammunition for removing this code (besides the fact
it isn't doing what the developer intended).
Thanks.
.
- Follow-Ups:
- Re: Multiple GC.Collect Calls...
- From: Peter Duniho
- Re: Multiple GC.Collect Calls...
- From: Scott M.
- Re: Multiple GC.Collect Calls...
- Prev by Date: EntLibConfig.exe - strong name validation failed
- Next by Date: Re: EntLibConfig.exe - strong name validation failed
- Previous by thread: EntLibConfig.exe - strong name validation failed
- Next by thread: Re: Multiple GC.Collect Calls...
- Index(es):
Relevant Pages
|