Results 1 to 2 of 2

Thread: Memory Usage (how to minimize)

  1. #1
    Guest

    Exclamation

    I have an application with 8 forms or so. One is a major form that all the others update. After they update this form I use the UNLOAD command to try and pull them out of memory. However, even with a single form, and this major (hidden) form the system resources in windows drop from 90% before opening my file to 30%. My app has several timers involved (about 10) that are running. Any ideas on how to minimize the memory usage??

    Thanks in advance.

    Dion Brewington

  2. #2
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649
    If you have timers on a form that you unload the code isn't unloaded. You must set the form to nothing in the Unload event.
    Code:
    Private Sub Form_Unload()
        'you can't use the Me keyword here
        'this assumes that this form is called Form1
        Set Form1 = Nothing
    End Sub
    Good luck!

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