Virtual memory problem

Posted on 2004-12-01
Last Modified: 2013-11-15

In our project even if we close the form ,and dispose the object associated with it,the memory is not  released, instead it gets accumulated and an Exception "Virtual Memory is Low" was thrown . The memory is getting released only when we quit the entire application.

How can we manage this memory problem?

very urgent

thanks in advance
Question by:lword
    LVL 28

    Accepted Solution

    Memory will be released when the Garbage collector will pick up.
    LVL 25

    Assisted Solution

    This object, have you written it yourself, and does it implements the Idisposible interface ?
    LVL 24

    Assisted Solution

    by:Jeff Certain
    .Net doesn't always release memory, even after the garbage is collected. Sometimes the application holds on to it for "future use." See this question:
    LVL 6

    Assisted Solution

    As others have said, .NET handles most of the memory issues for you (even if you don't want it to). This is the same reason a simple "Hello World" app may show up as using 30 megs of RAM, simply because .NET grabs a bunch of memory and hangs onto it in case it needs it later (of course, it will release it if another app/process needs it).

    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    Join & Write a Comment

    How to fix error ""Failed to validate the vCentre certificate. Either install or verify the certificate by using the vSphere Data Protection Configuration utility" when you are trying to connect to VDP instance from Vcenter.
    By default, Carbonite Server Backup manages your encryption key for you using Advanced Encryption Standard (AES) 128-bit encryption. If you choose to manage your private encryption key, your backups will be encrypted using AES 256-bit encryption.
    This tutorial will walk an individual through the process of installing the necessary services and then configuring a Windows Server 2012 system as an iSCSI target. To install the necessary roles, go to Server Manager, and select Add Roles and Featu…
    This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now