Solved

How to check for memory leaks.

Posted on 2002-04-22
4
261 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
[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
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

695 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