BoundsChecker

memory debugger

Uses your system voice; voice and rate in settings.

≈ 4 min read

Cite, export and learn8 citation formats · 8 exports · lesson and quiz

Names in other languages

  • caBoundsChecker
  • DeutschBoundsChecker
  • EnglishBoundsChecker
  • EspañolBoundsChecker
  • FrançaisBoundsChecker
  • ItalianoBoundsChecker
  • PortuguêsBoundsChecker
  • RomânăBoundsChecker

Article bodies are English and are not machine-translated. A name in another language is not a translation of the article.

BoundsChecker is a memory checking and API call validation tool used for C++ software development with Microsoft Visual C++. It was created by NuMega in the early 1990s. When NuMega was purchased by Compuware in 1997, BoundsChecker became part of a larger tool suite, DevPartner Studio.

Micro Focus purchased the product line from Compuware in 2009. Comparable tools include Purify, Insure++ and Valgrind. BoundsChecker may be run in two distinct modes: ActiveCheck, which will work against any application as is, or FinalCheck, which makes use of instrumentation added to the application when it is built.

ActiveCheck performs a less intrusive analysis and monitors all calls by the application to the C Runtime Library, Windows API and calls to COM objects. By monitoring memory allocations and releases, it can detect memory leaks and overruns. Monitoring API and COM calls enables ActiveCheck to check parameters, returns and exceptions and report exceptions when they occur.

Thread deadlocks can also be detected by monitoring of the synchronization objects and calls giving actual and potential deadlock detection. FinalCheck requires an instrumented build and gives a much deeper but more intrusive analysis. It provides all of the detection features of ActiveCheck plus the ability to detect buffer overflows (read and write) and uninitialized memory accesses.

It monitors every scope change, and tracks pointers referencing memory objects.

Leak detection

Memory tracking - Memory allocation and release is tracked over the life of the application, and an end-of-session report is generated showing which blocks of memory allocated by user code remain allocated at the time of a normal process termination. When compiler instrumentation is used, some memory leaks can be announced earlier, when the last pointer referring to an allocated block memory goes out of scope or gets overwritten by another value.

Through the same mechanisms, attempts to use pointers to previously released memory are reported. COM object tracking - COM object creation and destruction is tracked over the life of the application, and an end-of-session report is generated showing which objects remain active at the time of a normal process termination.

Resource tracking - The creation and destruction of system object handles (like file handles, GDI handles and so on) is monitored, and an end-of-session report is generated showing which handles remain at the time of a normal process termination.

API call validation

API calls are monitored, their input parameters verified before the function calls are actually performed, warning of possible problems. The API return codes are also monitored, and error codes are logged. Such validation is limited to such APIs as are known to BoundsChecker, currently several thousand in number. If Memory Tracking is enabled, API Call Validation can make use of the information gathered for more precise validation of memory pointers.

Memory overrun detection

When both memory tracking and API validation are enabled, it becomes possible to detect many kinds of array and buffer overrun conditions. Compiler instrumentation enhances this ability. This is the feature for which the product was originally named.

API call logging

API, COM method and .NET Interop function calls can be logged in detail, noting the call parameter values and the resulting return values. This feature is limited in value, as non-trivial applications often result in the session log quickly becoming too large.

.NET analysis

A report can be generated analyzing .NET Interop, garbage collection and finalizer activity over the life of the process under test.

Deadlock analysis

Certain kinds of deadly embraces and other such lockups can be detected.

Text derived from https://en.wikipedia.org/w/index.php?oldid=1325124748 under CC BY-SA 4.0; modifications have been made.

Words in each sectionLeak detectionLeak detectionLeak detection: 161 words161API call validationAPI call validationAPI call validation: 70 words70API call loggingAPI call loggingAPI call logging: 42 words42Memory overrun detectionMemory overrun detectionMemory overrun detection: 38 words38Deadlock analysisDeadlock analysisDeadlock analysis: 33 words33.NET analysis.NET analysis.NET analysis: 21 words21
Words in each section. Measured from the stored article body; sections below the minimum are not plotted.

Provenance

snapshot boundschecker-564986-b66b0079146135f8 · hash b66b0079146135f871089bf5e177b83b9561c39ca167e03142070f1cf4291eca · captured 2025-12-01 · ledger · version history

Cite this page as: encyclopegia.org, “BoundsChecker”, snapshot boundschecker-564986-b66b0079146135f8. https://encyclopegia.org/a/boundschecker

Sources cited in this revision

5 named source(s) extracted from the cited revision. A source with no author is shown by its publication; nothing is invented.