Results 1 to 2 of 2

Thread: VB.Net-made app consumes more memory than VB6.0-made ones?

  1. #1

    Thread Starter
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Arrow VB.Net-made app consumes more memory than VB6.0-made ones?

    It seems to be the case unless proven wrong by others...
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

  2. #2
    PowerPoster
    Join Date
    Jul 2002
    Location
    Dublin, Ireland
    Posts
    2,148

    Re: VB.Net-made app consumes more memory than VB6.0-made ones?

    No - this is the case but it is handy to know why.

    When you start a .NET application it allocates a big heap of memory for its own use and the framework memory handling system (also the "garbage collection") works with this.

    When you work in VB6 the app grows the heap each time you need more memory.

    Since heap management takes clock cycles, the .NET designers have traded memory footprint for speed (and stability).

    The analogy is like if you are building a wall. The .NET way is to order a palette of bricks (which takes up space on your driveway) and take from the palette as the wall is built - only getting another palette if the current one runs out whereas the VB6 way is to go to the store for each brick in turn.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width