Link to home
Start Free TrialLog in
Avatar of mheeg
mheeg

asked on

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?
Avatar of mark2150
mark2150

Use Form.Unload when instance is no longer required...

M
Avatar of mheeg

ASKER

I am working on an NT 4.0 Workstation using SP3
Avatar of mheeg

ASKER

We currently use:
            Unload Me

And then in the Unload Event:
            Set frmWhatever = Nothing

Is this pretty much what you had in mind?
Avatar of mheeg

ASKER

We currently use:
            Unload Me

And then in the Unload Event:
            Set frmWhatever = Nothing

Is this pretty much what you had in mind?

ASKER CERTIFIED SOLUTION
Avatar of waty
waty
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Did you ever find a better answer for this? I'm having the same problem and really need to fix it.