Solved

How to check for memory leaks.

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Fully specialized class template function 21 146
C++ question 3 74
Arduino EDI - Programming language 3 117
How to determine if the result of an equation is an integer in C++? 3 29
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. …
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 viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

726 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