Here are the settings for Visual Studio 6 that work best with Rational Runtime Analysis tools.
1. In Visual Studio, select Project > Settings.
2. In the Link tab:
Select General in the Category drop-down list box.
Clear the Link Incrementally checkbox.
Incremental linking can corrupt the symbols for the program, so that Runtime Analysis tools will not be able to read them.
In the Project Options box enter: /fixed:no.
This adds relocation information to your image file.
Select Debug in the Category drop-down list box.
Clear the Separate types check box.
Separate types links several smaller .pdb files to make one large .pdb file. Rational Runtime Analysis tools require one .pdb file for each.exe or .dll.
3. In the C/C++ tab:
Select General in the Category drop-down list box.
Select Program Database in the Debug info drop-down list box.
The Program Database for Edit and Continue feature is not supported by Rational Runtime Analysis tools.
4. If you are using release mode:
In the Link tab, select General in the Category drop-down list box.
In the Link tab, check Generate debug info.
In the C++ tab, select Disable (Debug) in the Optimizations drop-down list box.
Generate debug info and disable optimizations (such as time and size) are the defaults for a debug build, but not for a release build.
After changing your Visual Studio settings, you should always:
§ Rebuild your application.
§ Verify that the .pdb file for the .exe or .dll is in the same directory as the corresponding .exe or .dll. The .pdb file contains the Microsoft format symbol information. If you move your .exe or .dll to a working directory, you must also move the corresponding .pdb file.
§ If you are using inclusive instrumentation, clear your product's cache directory before running again. This forces reinstrumentation of the newly updated files.
PurifyPlus provides a script that can verify (and optionally correct) settings for Visual Studio 6 workspaces or projects. This tool is located at<install_drive>\Program Files\IBM\RationalPurifyPlus\Utilities\ScanVC6ForPurifyPlus.pl. Here's the readme for that script.
(C) Copyright IBM Corporation 1993, 2010.