Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

memory

Status
Not open for further replies.

jigolo

Programmer
Jan 6, 2004
20
CA
Why does a simple c# program take so much memory, I mean a simple form with a label in it takes up to 15 000 Ko in my task manager... is it the task manager or what?
 
As you know, you should have .NET Framework installed on your machine in order to run your app but I think you do not take care about the size shown by task manager.
A bad thing is do not release (dispose) the resourcea when there is no need.
-obislavu-
 
As mentioned in another recent post, C# is not the best choice when you are looking for a very small memory footprint. C# is very efficient when handling very rich functionality.

Looking at the memory footprint with one small form running is akin to asking "why does my V-8 truck burn so much gas when I'm only hauling a few groceries?" Haul groceries in a Honda. Use the truck for hauling furniture, rocks, and other vehicles.
 
Such question is initially created by a Unix users. In Unix there are many really fast, compact and memory less using applications. For me Unix programs is something what works really fast but does nothing useful. But is very compact and robust. The best programming language for such programmers would be assembler. For me assembler is a very good programming language, but only for different kind of drivers, and only hte timecritical sections in that drivers. But when there you should implement a Business Logic, assembler is the worst programming language. In this case the best languages are Java and C#. In my opinion C# is better, but is only an opinion.

Ion Filipski
1c.bmp
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top