Solved

Memory leak ... out of memory

Posted on 1998-09-30
2
139 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

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…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

911 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

19 Experts available now in Live!

Get 1:1 Help Now