pedrosl Posted September 12, 2003 Posted September 12, 2003 Hi, Can anyone explain to me why a windows forms app that only consists of a maximized window, done entirely with the Vc#.net designed, uses almost the triple of memory that an app like MS Access does? Is this the price to pay for .NET? Thanks Quote
Answer Posted September 12, 2003 Posted September 12, 2003 It is becuase of the JIT compiler and the garabage collector. I believe the JIT compiler actually loads stuff into memory prior to using it, to enhance performance while the application is running. Do a search on the garabage collector, there is a ton of info on it i just cant recall any good articles off the top of my head. Some of it may be the price of .net as windows forms in .net is completely different then vb6 forms which is what access uses. Quote
*Experts* mutant Posted September 12, 2003 *Experts* Posted September 12, 2003 You shouldnt have to worry about your application taking too much memory, if needed by another process, the memory will be freed by the garbage collector. Quote
AlexCode Posted September 12, 2003 Posted September 12, 2003 If you run a app that just displays one empty form, this app will have aprox 13Mb in memory! If you have a app runing in a PC with lots os memory the garbage collection doesn't bother cleaning the "garbage" and there you can have a simple app with 100Mb in memory and the same app in VB6 or Access shouldn't have more than 1Mb! But don't get scared! When needed, that space is made available! (but it looks real bad in the Task Manager !!) :p Quote Software bugs are impossible to detect by anybody except the end user.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.