#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2003
    Posts
    1
    Rep Power
    0

    Question VB6 startup memory bloat


    Hello:

    I have a VB6 app that when it runs, it takes up 13MB of memory. However if I just minimize then restore the screen the memory usage goes down to a reasonable 3MB, and stays near that level as the application is used.

    There is no Form_activate code that affects this.

    I tried a new project with just a blank form, it takes 2.1 MB, however if I do the min/restore the memory usage goees down to 600KB.

    Is there some way to clear this memory, or not have it allocated at all on startup? When there are several exes in memory some machines run out of memory.

    Thanks,
    Matt
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Jan 2003
    Location
    No es importante
    Posts
    2,065
    Rep Power
    14
    The Enterprise Version of Visual Basic comes with the Application Performance Manager. Have you tried stepping through the application to see what action peaks the processor?

IMN logo majestic logo threadwatch logo seochat tools logo