- Qt Creator Documentation
- Detect memory leaks with Heob
- Qt Creator 19.0.0-beta1

Detect errors in C++ code with Cppcheck ◦ Detect memory leaks with Memcheck

# Detect memory leaks with Heob

On Windows, use the Heob heap observer to detect buffer overruns and memory leaks.

To run Heob on the currently open project:

1. Select Analyze > Heob.

2. Select the Heob settings profile to use, or select New to create a new profile.
3. In Heob path, enter the path to the Heob executable.
4. Specify settings for running the checks.
5. Select OK to run Heob.

Qt Creator runs the application, and then it runs Heob in a terminal.

Heob raises an access violation on buffer overruns and records stack traces of the offending instruction and buffer allocation. You can see the results in the Memcheck view after Heob exits normally.

See also How To: Analyze, Analyzers, Heob, and Analyzing Code.

Detect errors in C++ code with Cppcheck ◦ Detect memory leaks with Memcheck