Solved

How to check for memory leaks.

Posted on 2002-04-22
4
240 Views
Last Modified: 2010-04-02
I have a VB application that makes repeated passes of  large amounts of data to my C++ dll (Safearrays) for encryption\decryption. I would like to test my C++ dll for memory leaks. Please inform me of the steps I should take.
0
Comment
Question by:jgc23
  • 2
4 Comments
 
LVL 1

Expert Comment

by:pzpn
ID: 6962248
I think it should be possible to run it through the Visual studio debugger and when it exits check the output. If you have memory leaks it will inform you of the fact and point you to the line in the source where the leak is occurring.

Otherwise there is also the option of investing in Nu-Mega Bounds Checker or there is a product from Rational but the name escapes me.
0
 

Author Comment

by:jgc23
ID: 6962854
pzpn
Please expand on what you mean by "when it exits check the
output. If you have memory leaks it will inform you.."
jgc23
0
 
LVL 5

Accepted Solution

by:
nebeker earned 50 total points
ID: 6966102
Get a copy of Rational's VisualPurify.  Write a test driver to simulate the useage of your DLL.  Run it for a while, and then let Purify give you a complete list of all memory leaks it found.  It is a very good product...
0
 

Author Comment

by:jgc23
ID: 6984146
thank you
Tried it, liked it, think I understand it!
0

Featured Post

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Suggested Solutions

What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

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