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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.