Tutorial

  • 11/18/2019
  • Public Content

Intel® Inspector Tutorial: Analyzing
Memory
Errors in a
C++
Sample Application for
Windows*
OS

Intel® Inspector
is a dynamic memory and threading error checking tool for users developing serial and multithreaded applications on Windows* and Linux* operating systems.
This tutorial - and
C++
sample application you can use to follow along - show how to use the Intel inspector on a
Windows*
platform to analyze
memory
errors.
Intel® Inspector
is available as a standalone product and as part of the following products:
  • Intel® System Studio
    Professional Edition
  • Intel® System Studio
    Ultimate Edition
  • Intel® Parallel Studio XE
    Professional Edition
  • Intel® Parallel Studio XE
    Cluster Edition
  • Intel® oneAPI HPC Toolkit
    (Beta)
  • Intel® oneAPI IoT Toolkit
    (Beta)
About This Tutorial
This tutorial demonstrates an end-to-end workflow you can ultimately apply to your own applications:
  1. Build an application to produce an optimal inspection result.
  2. Inspect an application to find
    memory
    errors.
  3. Edit application code to fix the
    memory
    errors.
  4. Rebuild and reinspect the application.
It was last updated for the 2017 product release. (The only variance for the 2018 product release is screenshot background color.)
Estimated Duration
10-15 minutes.
Learning Objectives
After you complete this tutorial, you should be able to:
  • List the steps to find and fix
    memory
    errors using the
    Intel Inspector
    .
  • Define key
    Intel Inspector
    terms.
  • Identify compiler/linker options that produce the most accurate and complete analysis results.
  • Run
    memory
    error analyses.
  • Influence analysis scope and running time.
  • Navigate among windows in the
    Intel Inspector
    results.
  • Display a prioritized
    to-do
    list for fixing errors.
  • Access help for fixing specific errors.
  • Access source code to fix errors.
More Resources
The concepts and procedures in this tutorial apply regardless of programming language; however, a similar tutorial using a sample application in another programming language may be available at:
These sites also offer tutorials for other Intel products.
In addition, you can find more resources in:

Product and Performance Information

1

Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors. Certain optimizations not specific to Intel microarchitecture are reserved for Intel microprocessors. Please refer to the applicable product User and Reference Guides for more information regarding the specific instruction sets covered by this notice.

Notice revision #20110804