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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Memory Usage Just Keeps on Increasing

Status
Not open for further replies.

Dannybe2

Programmer
Jan 31, 2001
136
GB
I have a problem with a program I'm writing.

I'm doing it in Microsoft Visual Studio .NET with c++ and using mysql to access a database.

The problem is the steadily increasing memory usage, which over time just keeps on going up.

I assume the problem is because I'm not freeing up memory somewhere. My question is this, is there any way in visual studio to find out which variables are not being released and so where all this memory is going?

I have tried just watching the variables as the program executes step by step, but everything looks like it has been freed up.

Thanks,
Dan
 
Hi Dan,

I'm not too clued up on the .NET version just yet but I know under VC++ 6.0 there is an MFC facility called CMemoryState which enables you to locate memory leaks.

Nick

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top