Click here to Skip to main content
15,924,196 members
Home / Discussions / C#
   

C#

 
GeneralRe: XmlTextReader XmlNode problem Pin
eggie512-Aug-04 7:59
eggie512-Aug-04 7:59 
GeneralRe: XmlTextReader XmlNode problem Pin
Nick Parker12-Aug-04 8:00
protectorNick Parker12-Aug-04 8:00 
GeneralRe: XmlTextReader XmlNode problem Pin
eggie512-Aug-04 8:32
eggie512-Aug-04 8:32 
GeneralRe: XmlTextReader XmlNode problem Pin
Nick Parker12-Aug-04 10:09
protectorNick Parker12-Aug-04 10:09 
GeneralRe: XmlTextReader XmlNode problem Pin
eggie512-Aug-04 11:26
eggie512-Aug-04 11:26 
GeneralMemory usage during execution Pin
Microprose12-Aug-04 6:31
Microprose12-Aug-04 6:31 
GeneralRe: Memory usage during execution Pin
dennis yi12-Aug-04 6:51
dennis yi12-Aug-04 6:51 
GeneralRe: Memory usage during execution Pin
Dave Kreskowiak12-Aug-04 6:54
mveDave Kreskowiak12-Aug-04 6:54 
First off, quit yelling!

The problem is not beacuse of the Timers, it's because your running a Managed app. 13-17MB is not uncommon for a Windows Forms managed application. You file size is 136K because it's IL code, not an executable. The IL gets translated into machine code by the .NET Framework and runs in what is essentially a virtual machine. The large memory footprint is the overhead of the .NET Framework and, no, you really can't make it any smaller.

You really don't have to worry about the memory footprint because it is managed by the Framework's Garbage Collector. I would HIGHLY suggest reading about it here[^]. It runs a bit lazily and won't clean up objects and free memory right away unless your machine start running low on memory.

I've got an app, puzzle solver really, that will consume about 2.3GB, yes GB, of memory at it's peak, even though the executable size is a mere 52KB. It beat the hell out of the GC so bad I had to write in my own memory manager to handle forecasting and pre-allocating array space.


RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

GeneralRe: Memory usage during execution Pin
Nick Parker12-Aug-04 7:58
protectorNick Parker12-Aug-04 7:58 
GeneralRe: Memory usage during execution Pin
Robert Rohde16-Aug-04 21:53
Robert Rohde16-Aug-04 21:53 
GeneralRe: Memory usage during execution Pin
Dave Kreskowiak18-Aug-04 8:47
mveDave Kreskowiak18-Aug-04 8:47 
QuestionPlease do my homework??? Pin
Anonymous12-Aug-04 5:59
Anonymous12-Aug-04 5:59 
AnswerRe: Please do my homework??? Pin
Dave Kreskowiak12-Aug-04 6:34
mveDave Kreskowiak12-Aug-04 6:34 
AnswerRe: Please do my homework??? Pin
dennis yi12-Aug-04 7:06
dennis yi12-Aug-04 7:06 
AnswerRe: Please do my homework??? Pin
Nick Parker12-Aug-04 7:53
protectorNick Parker12-Aug-04 7:53 
AnswerRe: Please do my homework??? Pin
BECK712-Aug-04 10:04
BECK712-Aug-04 10:04 
GeneralMasks in C# Pin
BECK712-Aug-04 5:41
BECK712-Aug-04 5:41 
GeneralRe: Masks in C# Pin
Nick Parker12-Aug-04 7:55
protectorNick Parker12-Aug-04 7:55 
GeneralRe: Masks in C# Pin
BECK712-Aug-04 10:01
BECK712-Aug-04 10:01 
GeneralSslStream in .net 2 Pin
Werdna12-Aug-04 5:12
Werdna12-Aug-04 5:12 
Generaldatagrid display Pin
elraton12-Aug-04 4:54
elraton12-Aug-04 4:54 
GeneralWindows Service dependency problem Pin
halexic12-Aug-04 4:53
halexic12-Aug-04 4:53 
GeneralRe: Windows Service dependency problem Pin
ChrisAdams12-Aug-04 9:54
ChrisAdams12-Aug-04 9:54 
GeneralRe: Windows Service dependency problem Pin
halexic12-Aug-04 10:13
halexic12-Aug-04 10:13 
Generalsoftware base router implemention. Pin
12-Aug-04 4:48
suss12-Aug-04 4:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.