Tips for Using Purify (Error Detection)

Related Topics

§          Using Purify consistently at every stage in your development process helps you deliver the highest quality software applications.

§          To develop the cleanest code possible, correct all warnings, as well as errors.

§          Collect coverage data for each run to make sure you are testing all of your code.

§          To help minimize memory leaks, always make the destructor of a base class virtual. This ensures that the destructors of any derived classes are invoked when the destructor is called through a pointer to the base class. Also, be sure to deallocate all dynamic memory used by the object in the destructor.

§          Purify checks every memory access operation, pinpointing where errors occur and providing detailed diagnostic information to help you analyze why the errors occur.

§          You can add a shortcut to Purify in the SendTo folder located in your user profile folder. Then just right-click the program icon and select Send To > Purify from the shortcut menu.

§          Purify's integration with Rational Robot enables you to run Robot scripts for a program and to check your program for memory errors and leaks at the same time.

§          Using Purify's integration with Rational ClearQuest, you can submit defects while working in Purify.

(C) Copyright IBM Corporation 1992, 2010.