memory-leakspurify

Rational Purify failing to jump to memory leaks


So my company uses a delightfully buggy program called Rational Purify (as a plugin to Microsoft Visual Developer Studio) to manage memory leaks. The program is deigned to let you click on a memory leak after you have encountered it, and then jump to the line that the leak occurs on.

Unfortunately Purify is malfunctioning and Purify will not jump to the place that the leak occurred it only mentions the class and method that the leak occurs in. Unfortunately, sometimes this is about as useful as hiring a guide to help you hunt bears and having him point to the forest and tell you there are bears there.

Does anyone with Purify experience have any idea how I might fix this problem or have a good manual to look though?


Solution

  • Generally you have two options, one exclude modules DLL's from instrumentation in Purify, it helps some times. Second is get BoundsChecker, this does compile time instrumentation much slower but the level of detail is an order of magnitude better.

    We generally use Purify on check-in, sanity checking, and BoundsChecker when we know a bug/crash exists.

    BoundsChecker has some nice features like only instrument files A.cpp & B.cpp, excluding all the rest.

    Be aware neither of these two applications function on 64 bit operating systems, and BoundsChecker will not install on 64 bit OS. Most frustrating if you make the switch to native 64 bit development with 32 bit back port!