Results 1 to 5 of 5

Thread: How release memory!? - READ THIS ! -

  1. #1

    Thread Starter
    Registered User
    Join Date
    Apr 1999
    Location
    Brazil
    Posts
    144

    Post

    When you load a form with a picture (jpg or bmp) from a DLL and Unload the form, even using frmName=Nothing, the memory that it had used (including the image size) with stay in the memory.
    I know this 'cause I' saw with the Norton Information.

    I ask you,
    how can I unload the form and free this memory?

    Thanks is advance.
    Jefferson

  2. #2
    Lively Member
    Join Date
    Oct 1999
    Location
    Sheffield, Derbyshire, UK
    Posts
    68

    Post

    erm , imnot sure about this, but could the memory that is still used just be your pc being useful and keeping the prog u just ran in ram, so it will run quicker if u need it again?? Its a possibility, especially with win 98!

    ------------------
    jimmy
    ICQ:35813919
    mail:[email protected]

  3. #3
    Member
    Join Date
    Jun 1999
    Posts
    38

    Post

    the tips section of this site gives this example, or something close...

    Dim frm as Form

    For Each frm in Forms
    Unload frm
    Set frm = Nothing
    Next frm

    ...which should release all memory.

  4. #4
    Hyperactive Member
    Join Date
    Jan 1999
    Location
    Rotterdam, Netherlands
    Posts
    386

    Post

    I remember that I read somewhere that windooz actually does free the memory, but keeps it available to the running application (and shows it as if it in use by that application), but if another application needs the memory, it will get it.

  5. #5

    Thread Starter
    Registered User
    Join Date
    Apr 1999
    Location
    Brazil
    Posts
    144

    Post

    Thanks!
    Jefferson

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