Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Memory Leak in Multithreaded Application

Status
Not open for further replies.

rammohanshyammohan

Programmer
Nov 1, 2001
1
IN
i run a multithreaded application that interacts with the database & fax card. I need to run it for long time but application runs & uses up most of the memory .
I think there is memory leak somewhere. the "exe"
occupies initially 5MB but keeps on compounding each day
can any body help me how to detect & handle memory leaks.
pls help me to solve this problem.
very urgent.
 
There is no miracle with memory leaks. Try to check that every allocation match with a delete, set pointers to null after delete, check member pointer at destruction, check if you have to free pointers you get from outside code.

If you have a previous version of your software where the memory leak is not here, try to add step by step your modifications.

And if you are lucky the dump of the memory leak by Visual might match some value to plot you to the position where you make an error. David Burg,
Ahead Software AG
 
use NuMega True ...something etc
best thing is go to numega.com.
Good tools are there and enjoy.
BBBBBBBBBBBBbYYYYYYYEEEEEEEE
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top