• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 221
  • Last Modified:

Memory Leak using MDI Child Forms

I am currently working on a VB5 project that uses about 10 MDI Child forms. During testing we found that as we opened up multiple instances of the same form and other forms, we are losing from 15 - 40 kb of memory per form. After about 3-4 hours of continuous use, the program receives an access violation Exception error. Is there anyway to release all resources allocated to these forms, or at least minimize what they waste?
0
mheeg
Asked:
mheeg
1 Solution
 
mark2150Commented:
Use Form.Unload when instance is no longer required...

M
0
 
mheegAuthor Commented:
I am working on an NT 4.0 Workstation using SP3
0
 
mheegAuthor Commented:
We currently use:
            Unload Me

And then in the Unload Event:
            Set frmWhatever = Nothing

Is this pretty much what you had in mind?
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
mheegAuthor Commented:
We currently use:
            Unload Me

And then in the Unload Event:
            Set frmWhatever = Nothing

Is this pretty much what you had in mind?

0
 
watyCommented:
You can download the following file, it gives you indication on how optimize your application to avoid memory leaks, increase the speed...

http://www.geocities.com/ResearchTriangle/6311/article002.htm
0
 
hessCommented:
Did you ever find a better answer for this? I'm having the same problem and really need to fix it.
0

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now