Re: Reducing memory usage
From: Herfried K. Wagner [MVP] (hirf-spam-me-here_at_gmx.at)
Date: 03/25/05
- Next message: John Grandy: "configure layout & formatting of columns of bound DataGrid"
- Previous message: Richard: "Windows Form DataGrid - Need A Color Border Around Only The Selected Row - Will GDI Be Required"
- In reply to: Mikko Nylén: "Reducing memory usage"
- Next in thread: Mikko Nylén: "Re: Reducing memory usage"
- Reply: Mikko Nylén: "Re: Reducing memory usage"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 25 Mar 2005 02:41:08 +0100
"Mikko Nylén" <mikko.nylen@gmail.com> schrieb:
> 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.
Not every form will take >= 9 MB. Note that Windows Forms applications will
load some larger libraries which take some megabytes.
-- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://classicvb.org/petition/>
- Next message: John Grandy: "configure layout & formatting of columns of bound DataGrid"
- Previous message: Richard: "Windows Form DataGrid - Need A Color Border Around Only The Selected Row - Will GDI Be Required"
- In reply to: Mikko Nylén: "Reducing memory usage"
- Next in thread: Mikko Nylén: "Re: Reducing memory usage"
- Reply: Mikko Nylén: "Re: Reducing memory usage"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|