Solved

How to check for memory leaks.

Posted on 2002-04-22
4
225 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
thank you
Tried it, liked it, think I understand it!
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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. …
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
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.

762 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now