Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / May 2004

Tip: Looking for answers? Try searching our database.

52K exe file and 11MB memory footprint

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Christofer Dutz - 12 May 2004 13:31 GMT
Hi

I am playing around a little with C# and the .Net Framework. After finishing a first application I have a 52K executable. When executing it I can see that it has a memory usage of allmost 11MB. I guess this is because of the .Net VM runing. Can I reduce the memory usage somehow

Thanx in advance
   Chris
Andrew Baum - 14 May 2004 06:08 GMT
Chris,

This is a side affect of how the framework was designed.  The memory
utilization is higher than say a standard Win32 app because of the size of
framework assemblies.  The trade off here is that there are alot fewer
assemblies to worry about referencing than a typical win32 app, and because
of this you will notice your application size it quite small.  The only way
I think they could have reduced the memory footprint would be by splitting
the framework assemblies up further, then we'd all be in reference hell. :P
That said, if you using VS.NET to build you application, it defaults to
specific assembly references that you may not need afterall, with a bit of
trial and error you may find you can delete a reference and reduce your
memory foot print a bit.  Also, I've heard an obfuscator can reduce the foot
print slightly as well.

-Andrew
http://abaum.com/blog

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.