Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Memory leak ... out of memory

Posted on 1998-09-30
2
141 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
ID: 1437483
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
ID: 1437484
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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

792 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