Results 1 to 2 of 2

Thread: virtual memory

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2005
    Posts
    1

    virtual memory

    hi all
    My c# program creates several windows with datagrids. the virtual memory size used by the program increase whenever a new window is opened but doen't decrease when these windows are closed(dispose is explicitlly called). Is there a memory leak in my program ,if so is there a utility i can use to locate the memory leak?
    Thanks

  2. #2
    Frenzied Member ntg's Avatar
    Join Date
    Sep 2004
    Posts
    1,449

    Re: virtual memory

    This is a very complicated subject that I won't even pretend to know well. I will just say that the garbage collector takes care of memory management and it doesn't always behave in ways that you expect. For example, VM size of your process may not change unless there is a need by other system processes to allocate memory. The most notable exceptions to automated garbage collection as it is being instrumented by GC is the use of unmanaged resources - for those, you'll have to clean up after yourself.
    "Feel the force...read the source..."
    Utilities: POPFileDebugViewProcess ExplorerWiresharkKeePassUltraVNCPic2Ascii
    .Net tools & open source: DotNetNukelog4NetCLRProfiler
    My open source projects: Thales SimulatorEFT CalculatorSystem Info ReporterVSS2SVNIBAN Functions
    Customer quote: "If the server has a RAID array, why should we bother with backups?"
    Programmer quote: "I never comment my code. Something that is hard to write should be impossible to comprehend."
    Ignorant quote: "I have no respect for universities, as they teach not practicle stuff, and charge money for"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width