Solved

Memory leak ... out of memory

Posted on 1998-09-30
2
138 Views
Last Modified: 2010-04-30
After running my written program some hours , the memory seems to get full and the Pc starts writing to the HD for virtual memory... till also this get full. What technique can be used to detect the cause/bug ? The VB-program uses some mdb-files...
0
Comment
Question by:juul040798
2 Comments
 
LVL 2

Expert Comment

by:AllenC_Jr
Comment Utility
Try to regulate what the end user will be able to view/edit/print to a point that it doesn't take up all of the memory you are talking about.
0
 
LVL 3

Accepted Solution

by:
kfrick earned 100 total points
Comment Utility
You can use the Task Manager to help track memory leaks. Open the TaskManager, and click on the Processes tab.
Now start your program. Several new processes may start, and you can see how much memory is being used. Look for one that keeps increasing, and try to relate it to a process in your program. Then selectively eliminate processes until you find the leaky one.
I had a similar problem, using a third-party dll. The dll was leaking memory, and I used the above process to find it out. The third-party supplier found and fixed the bug after I demonstrated how to make it occur.
Good Luck!
-kf
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

762 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

16 Experts available now in Live!

Get 1:1 Help Now