Re: GC.Collect() not cleaning memory, how to find out what references to lots of memory still exist?



DR,

Why you call GC.Collect? It is the same practise as power down your computer after your program is done and than start again.

The benefit is the same, because with letting memory unused is nothing wrong as long as there is enough. It is better to clean it up at the right time by instance as there is not enough memory anymore or the computer is in a kind of idle state. And that is where Net is for.

So the parallel with power down your computer is no joke, it is exactly the same.

Cor




"DR" <softwareengineer98037@xxxxxxxxx> schreef in bericht news:uOkNbC0nIHA.2292@xxxxxxxxxxxxxxxxxxxxxxx
GC.Collect() not cleaning memory, how to find out what references to lots of memory still exist?

When all my processign is done i set everything to null and then:
GC.Collect();
and then
GC.WaitForPendingFinalizers();
but it still shows that my process takes 400 MB of memory. Is there any easy way to see what references that I forgot to set to null so that the memory cleas up on GC.Collect() ?


.



Relevant Pages

  • Montreal Linux Power Management Mini-Summit, July 13, 2009 - Meeting Notes
    ... The Linux Symposium generously provided the facilities. ... Summary of Power Management kernel changes since last year ... NVS memory handling ... suspend/resume framework re-work ...
    (Linux-Kernel)
  • RE: MACHINE_CHECK_EXCEPTION errors
    ... Even with the new memory, ... I am running Windows XP Home on an AMD ATHLON 64 CPU on an ABIT UL8 ... You will also want to check out your event viewer. ...
    (microsoft.public.windowsxp.perform_maintain)
  • Re: Building a low-power FreeBSD media server
    ... If by "low power" you mean low power consumption (as opposed to the ... memory per TB of storage. ... and your server will be anything but low power consumption. ... generated by high density arrays of disk drives installed in the case. ...
    (comp.unix.bsd.freebsd.misc)
  • Re: Puzzling Problems -- Pulling Hair
    ... Try increasing voltage or slowing speed and timings to troubleshoot. ... Next likely is mother board then power supply. ... Four 500 gigabyte hard drives -- three Western Digital and ... I removed the case cover and noticed that when I'd try to power up the fancy blinky lights on the Crucial Ballistix memory sticks were dark. ...
    (alt.comp.periphs.mainboard.asus)
  • Re: Puzzling Problems -- Pulling Hair
    ... Try increasing voltage or slowing speed and timings to troubleshoot. ... Next likely is mother board then power supply. ... Four 500 gigabyte hard drives -- three Western Digital and ... I removed the case cover and noticed that when I'd try to power up the fancy blinky lights on the Crucial Ballistix memory sticks were dark. ...
    (alt.comp.periphs.mainboard.asus)