Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hey guys for some reason my app uses like 34-40 megs of ram i have no idea

 

just a little bit of linera gradeint color for panels

 

two timers

 

and thats about it

 

oh and serialization class for xml

 

 

any of u got tips to help memory management in coding or wateva

 

 

or is it a bug in the framework coz i ran my app on framwork 1.0 sp2 stll same problem, i got a friend who had 2003.net and compiled it int hat then the app ran like 23 megs

 

ahhh

  • *Experts*
Posted

A lot of the memory taken up by the application is probably the framework

loaded into memory. There isn't really a way around it.

Posted

Well, actually this was a problem I pointed in several newsgroups (including Microsoft's), and I'm still waiting for a good answer for this problem, an App made on VB6 uses 12Mb the same App made on .NET uses 30MB or more (depending on the mood of the Framework that morning). They gave me documents and stuff about the garbage collector, references, etc. and nothing worked out

I think this is a bug on the framework, for example, when you dispose an object and then force the GC, it is supposed to get your RAM back, but it keeps the same.

Let's hope that MS works around this in the 1.1 version of the framework, for the moment I solved this problem buying more RAM for the computers on the company

Fat kids are harder to kidnap
  • *Gurus*
Posted

Buying more ram was probably not necessary. It's not my job to defend Microsoft or explain to you how the garbage collector works, but I will say that it is only hungry for memory if memory is available. If you're running short, the program will run just fine and use less ram.

 

Search the internet and you'll find lots of information regarding the myth that .net needs loads of memory, and also on how the garbage collector works, which will hopefully inform you why calling GC.Collect() will not necessarily collect every object in limbo right away.

MVP, Visual Developer - .NET

 

Now you see why evil will always triumph - because good is dumb.

 

My free .NET Windows Forms Controls and Articles

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...