Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

Posted

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.

  • *Experts*
Posted
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.
Posted

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

Software bugs are impossible to detect by anybody except the end user.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...