B
ben.heebner
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.
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.