[Contents] [TitleIndex] [WordIndex

1. Purify 7.0 Recommended Settings for Visual Studio .NET and Visual Studio 2005 or more

For native-compiled (unmanaged) code Here are the settings for Visual Studio .NET and Visual Studio 2005/20xx that work best with Rational Runtime Analysis tools for native-compiled (unmanaged) code.

1. In the Property Pages for your project, C/C++ folder, General page:

Select Program Database in the Debug Information Format property drop-down list box.

2. In the C/C++ folder, Code Generation page:

Select Default in the Basic Runtime Checks property drop-down list box. This option setting disables the VC7 compiler's stack frame checking.

3. In the Linker folder, General page:

Select No in the Enable Incremental Linking property drop-down list box.

4. In the Linker folder, Command Line page:

In the Additional Options box add: /fixed:no. This adds relocation information to your image file.

5. In the C/C++ folder, Optimization page:

§ For Visual Studio 2005, set Whole Program Optimization to No.

6. In the Linker folder, Input page:

§ Clear Delay Loaded Dlls. If you must use this setting then you need to exclude the module that is built with this setting from instrumentation.

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.

§ Clear your product's cache directory before running again. This forces reinstrumentation of the newly updated files.

Notes:

§ A .dll from the Microsoft Debugger Interface Access SDK is used to collect debug data from pdb files generated by Visual Studio 20xx. This is installed by default with Visual Studio 2005. It’s a redistributable package, and the redistributable is installed as <install dir>\Microsoft Visual Studio 8\SDK\v2.0\Bootstrapper\Packages\vcredist_x86.exe. You may need to run this to install DIA if you want to run your program on a different machine than that where Visual Studio 2005 is installed. If vcredist_x86.exe doesn't work for you, try the instructions here: http://entrian.com/blog/rational-purify-and-the-microsoft-dia-sdk/


2022-09-08 09:27