Solved

Memory Leak using MDI Child Forms

Posted on 1998-10-09
6
208 Views
Last Modified: 2008-02-26
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
Comment
Question by:mheeg
6 Comments
 
LVL 12

Expert Comment

by:mark2150
ID: 1439052
Use Form.Unload when instance is no longer required...

M
0
 

Author Comment

by:mheeg
ID: 1439053
I am working on an NT 4.0 Workstation using SP3
0
 

Author Comment

by:mheeg
ID: 1439054
We currently use:
            Unload Me

And then in the Unload Event:
            Set frmWhatever = Nothing

Is this pretty much what you had in mind?
0
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 

Author Comment

by:mheeg
ID: 1439055
We currently use:
            Unload Me

And then in the Unload Event:
            Set frmWhatever = Nothing

Is this pretty much what you had in mind?

0
 
LVL 14

Accepted Solution

by:
waty earned 150 total points
ID: 1439056
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
 

Expert Comment

by:hess
ID: 3691114
Did you ever find a better answer for this? I'm having the same problem and really need to fix it.
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now