Results 1 to 4 of 4

Thread: Clearing Memory

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2000
    Location
    Posts
    8
    Every time a form is unloaded it doesn't release all
    the memory it once used.
    Repeatedly loading and unloading forms seems to
    hog memory, eventually slowing my application down (till
    RTE 7 'Out of Memory').

    Is there a way of unloading a form whilst retrieving
    all the RAM memory it took (set frm = nothing has no effect and hide/unhide is not viable). Alternatively, if an appliaction is running for a long time, is it possible to
    somehow clear the memory of garbage (without rebooting).
    Jemerah

  2. #2
    Addicted Member
    Join Date
    Jul 2000
    Location
    Scotland
    Posts
    184


    Unload MyForm
    'Unloads a form or control from memory.

    When a form is unloaded, only the displayed component is unloaded. The code associated with the form module remains in memory

  3. #3
    Guest
    Set Form1 = Nothing 'removes all that are using memory
    Unload Form1 'Unload form from menu

    Use both.

  4. #4
    Guest
    Don't forget to release any objects you have instantiated in the form, cos they will not release the memory when the form is closed.

    Basically, set all you objects to nothing

    - gaffa

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