Adjust Max Memory Used in VB.NET EXE

Posted on 2004-11-15
Last Modified: 2010-05-18
Is it possible to adjust the amount of memory that an application uses.
Question by:JoseDavila
    1 Comment
    LVL 2

    Accepted Solution

    I dont think there is a way to limit the amount of memory an application is allowed to use in .net
    But what you can do to keep memory usage to a minimum is to allocate objects as late as possible and dispose of them as soon as you can.
    you can also do a GC.Collect() right after disposing of objects to force the frameworks garbage collector to clean things up..

    As far as i know all memory management in .net is handled by the framework and the OS, thats why all code is "managed" so you dont have to deal with this stuff...

    Hope this clears things up a bit....

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Suggested Solutions

    Title # Comments Views Activity
    prevent lose focus 6 48
    vb.Net delete files with specific extension 5 34
    Help file 1 28
    Handling arrays 14 27
    Article by: Kraeven
    Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
    1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    794 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