Multiple GC.Collect Calls...

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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.

.



Relevant Pages

  • Re: Do you still choose java????
    ... > the garbage collector has really improved looks like, less intrusive, ... > although I was disappointed when I was playing a few applet games ... > online that had noticable pauses in it. ...
    (comp.lang.java.developer)
  • Re: Do you still choose java????
    ... > the garbage collector has really improved looks like, less intrusive, ... > although I was disappointed when I was playing a few applet games ... > online that had noticable pauses in it. ...
    (comp.lang.java.programmer)
  • Re: Do you still choose java????
    ... > the garbage collector has really improved looks like, less intrusive, ... > although I was disappointed when I was playing a few applet games ... > online that had noticable pauses in it. ...
    (comp.lang.java.softwaretools)