Adjust Max Memory Used in VB.NET EXE

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

Accepted Solution

JohnnyGr earned 1000 total points
ID: 12613888
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 vb.net code is "managed" so you dont have to deal with this stuff...

Hope this clears things up a bit....

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
Suggested Courses
Course of the Month13 days, 20 hours left to enroll

809 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