Memory usage of Forms..?


      I am new to .NET programming.I am trying to develop a text editor(GUI) in VB but i have noticed that displaying a single form (even with out any controls ) is taking around 10,000 kb of memory.
          The interesting thing is that when the application is first launched it is taking huge memory as said but when i minimize the application it takes around 300kb or so. Further when i maximize it, it is taking only around 1700 kb(10-20% of the first time).[I Checked this in task manager]
                                                              This is same for every form (with or without controls).I wish someone too checks this out and helps me to decrease the amount of memory the forms are taking.It would be ridiculous to have text editor which takes more than 10mb of ram.Big Smile
 


Answer this question

Memory usage of Forms..?

  • Lerxst51014

    Hi Vijay,

    You would need to use a tool such as Memory Profiler:
    http://www.scitech.se/memprofiler/

    Also, if you want to get a correct idea about memory, do the checks on a EXE built in Release Mode.

    Regards,
    Vikram

  • SFedor

    Hi Vijay,

    If you are observing the "Mem Usage" column in task manager, all .NET
    applications have the runtime DLL size included in this figure.  These are DLLs
    that are shared across all processes, so the actual hit in terms of RAM usage
    occurs only on the first load.

    Regards,
    Vikram

  • CharlieD

    Hi Vikram,
                     Is there any way, I can get the exact memory used by my application.I also would like to know if I can change the memory displayed for my application by task manager.
                                                                                     Thanks.Big Smile

  • Memory usage of Forms..?