C# simple windows form taking alot of RAM
-
Hello! I am looking for some suggestions/tips for the following issue: I have a C# Windows application having 1 form. In that form i have 12 text-boxes, 2 progress-bars, 5 buttons, status strip and 5 group-boxes.....as displayed in task manager, it is taking more than 25 MB of RAM! I haven't placed any code yet, any recommendation/tip/suggestion for the issue will be appreciated. BTW, any idea how much RAM should it be taking? Regards, Adeel
Do rate the reply, if it helps or even if it doesnot, because it helps the members to know, what solved the issue. Thanks.
-
Hello! I am looking for some suggestions/tips for the following issue: I have a C# Windows application having 1 form. In that form i have 12 text-boxes, 2 progress-bars, 5 buttons, status strip and 5 group-boxes.....as displayed in task manager, it is taking more than 25 MB of RAM! I haven't placed any code yet, any recommendation/tip/suggestion for the issue will be appreciated. BTW, any idea how much RAM should it be taking? Regards, Adeel
Do rate the reply, if it helps or even if it doesnot, because it helps the members to know, what solved the issue. Thanks.
Adeel Chaudhry wrote:
BTW, any idea how much RAM should it be taking?
25 MB seems fine to me. Remember, there's a residual amount of RAM before you start adding stuff. A second form won't make it 50 MB.
Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
-
Adeel Chaudhry wrote:
BTW, any idea how much RAM should it be taking?
25 MB seems fine to me. Remember, there's a residual amount of RAM before you start adding stuff. A second form won't make it 50 MB.
Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
I agree with Christian on this one. It seems the simplest Windows App takes +- 20MB RAM, and then any (Not-too intensive) code takes up insignificantly more. Create a "Hello World!" windows form to see what I mean. I'm not exactly sure WHY, but that's the way it works :) We should learn from C++, where A "Hello World!" Form-Based app takes like 200k RAM ;) :laugh:
-= Reelix =-
-
Hello! I am looking for some suggestions/tips for the following issue: I have a C# Windows application having 1 form. In that form i have 12 text-boxes, 2 progress-bars, 5 buttons, status strip and 5 group-boxes.....as displayed in task manager, it is taking more than 25 MB of RAM! I haven't placed any code yet, any recommendation/tip/suggestion for the issue will be appreciated. BTW, any idea how much RAM should it be taking? Regards, Adeel
Do rate the reply, if it helps or even if it doesnot, because it helps the members to know, what solved the issue. Thanks.