In addition to what everyone else said, here's an example of just how
many files are loaded into memory. It's a simple little WinForm to
get the MD5 checksum. The files that are loaded are:
c:\winnt\system32\MPR.DLL
c:\winnt\system32\ADVAPI32.DLL
c:\winnt\system32\KERNEL32.DLL
c:\winnt\system32\MSCOREE.DLL
c:\winnt\system32\NTDLL.DLL
c:\winnt\system32\RPCRT4.DLL
c:\winnt\system32\ACTIVEDS.DLL
c:\winnt\system32\ADSLDPC.DLL
c:\winnt\system32\CABINET.DLL
c:\winnt\system32\COMCTL32.DLL
c:\winnt\system32\COMDLG32.DLL
c:\winnt\system32\CRYPT32.DLL
c:\winnt\system32\DBGHELP.DLL
c:\winnt\system32\DNSAPI.DLL
c:\winnt\system32\GDI32.DLL
c:\winnt\system32\IMAGEHLP.DLL
c:\winnt\system32\LZ32.DLL
c:\winnt\system32\MLANG.DLL
c:\winnt\system32\MSASN1.DLL
c:\winnt\system32\MSI.DLL
c:\winnt\system32\MSVCRT.DLL
c:\winnt\system32\NETAPI32.DLL
c:\winnt\system32\NETRAP.DLL
c:\winnt\system32\NTDSAPI.DLL
c:\winnt\system32\OLE32.DLL
c:\winnt\system32\OLEAUT32.DLL
c:\winnt\system32\SAMLIB.DLL
c:\winnt\system32\SECUR32.DLL
c:\winnt\system32\SETUPAPI.DLL
c:\winnt\system32\SFC.DLL
c:\winnt\system32\SFCFILES.DLL
c:\winnt\system32\SHELL32.DLL
c:\winnt\system32\SHLWAPI.DLL
c:\winnt\system32\TAPI32.DLL
c:\winnt\system32\URLMON.DLL
c:\winnt\system32\USER32.DLL
c:\winnt\system32\USERENV.DLL
c:\winnt\system32\VERSION.DLL
c:\winnt\system32\W32TOPL.DLL
c:\winnt\system32\WININET.DLL
c:\winnt\system32\WINMM.DLL
c:\winnt\system32\WINSPOOL.DRV
c:\winnt\system32\WINTRUST.DLL
c:\winnt\system32\WLDAP32.DLL
c:\winnt\system32\WS2_32.DLL
c:\winnt\system32\WS2HELP.DLL
c:\winnt\system32\WSOCK32.DLL
Austin Ehlers
On Fri, 5 Sep 2003 20:26:01 +0200, "Philip Carnstam"
<ph*************@carnstam.net> wrote:
How come .Net applications use so much memory? Every application I compile
uses at least 10 MB of memory, even the ones consisting of only a form and
nothing else. If I minimize them though the memory usage drops to a couple
hundred KB. Why?
Is there anything I should to to prevent this? I have compiled in release
and deactivated all forms of debugging, I think!
Thanks,
Philip