Small C# program takes up too much memory
- From: elty123@xxxxxxxxx
- Date: 20 Feb 2007 08:39:58 -0800
I have a small C# program (about 400 lines of code) that is only 28kb
after compiled.
However when it runs (takes a whole 5 seconds) it takes up nearly 20MB
of memory and I don't see why.
Some of the assembly I used:
using System;
using System.Collections.Generic;
using System.Windows.Forms;
using System.Xml.Serialization;
using System.IO;
using System.Diagnostics;
using System.Management;
The program read (de-serialize) a XML file, then generate a list. Then
the program read through the event log and see if anything match the
list.
Is there anyway I can reduce the memory usage?
.
- Follow-Ups:
- Re: Small C# program takes up too much memory
- From: Arne Vajhøj
- Re: Small C# program takes up too much memory
- From: Chris Mullins [MVP]
- Re: Small C# program takes up too much memory
- From: Ignacio Machin \( .NET/ C# MVP \)
- Re: Small C# program takes up too much memory
- From: Morten Wennevik [C# MVP]
- Re: Small C# program takes up too much memory
- From: Tom Porterfield
- Re: Small C# program takes up too much memory
- Prev by Date: DCom interface ... Please help!
- Next by Date: Re: help in c sharp
- Previous by thread: DCom interface ... Please help!
- Next by thread: Re: Small C# program takes up too much memory
- Index(es):
Loading