Reducing memory usage
From: Mikko Nylén (mikko.nylen_at_gmail.com)
Date: 03/25/05
- Next message: Richard: "Windows Form DataGrid - Need A Color Border Around Only The Selected Row - Will GDI Be Required"
- Previous message: Frankk: "How to build a control with a property like ..."
- Next in thread: Herfried K. Wagner [MVP]: "Re: Reducing memory usage"
- Reply: Herfried K. Wagner [MVP]: "Re: Reducing memory usage"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 25 Mar 2005 02:59:45 +0200
Is it somehow possible to reduce memory usage in Windows.Forms applications?
Now when I create a empty form with code
--
namespace FormTest
{
using System.Windows.Forms;
public class Testform
{
[STAThread]
static void Main()
{
Form form = new Form();
form.Visible = true;
Application.Run(form);
}
}
}
--
it takes ~14 MB of memory when compiled with debug configuration. When
compiled with release configuration, it takes 9 MB. I also tryed to
restart application for a couple of times, but the memory usage wont
decrease.
What can I do? If every form takes >= 9 MB, it could be a quite big
performance bottleneck for larger applications.
Thanks in advance.
- Mikko Nylén
- Next message: Richard: "Windows Form DataGrid - Need A Color Border Around Only The Selected Row - Will GDI Be Required"
- Previous message: Frankk: "How to build a control with a property like ..."
- Next in thread: Herfried K. Wagner [MVP]: "Re: Reducing memory usage"
- Reply: Herfried K. Wagner [MVP]: "Re: Reducing memory usage"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|