?
Solved

Memory leak ... out of memory

Posted on 1998-09-30
2
Medium Priority
?
145 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
[X]
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
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 200 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: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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…
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…
Suggested Courses
Course of the Month10 days, 14 hours left to enroll

770 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