Description
Sets a counter specifying the number of heap operations (for example, malloc, free, HeapAlloc) you want the program to perform before the next late detect scan. By default, Purify performs a late detect scan after every 200 heap operations or if 10 seconds has elapsed between the currently active heap operation and the last heap operation, whichever comes first.
Syntax
int PurifySetLateDetectScanCounter(int counter)
counter |
The number of heap operations the program performs before the next late detect scan. |
Returns
n |
Where n is the counter value previously in effect. |
Notes
§ When Purify discovers errors from a late detect scan, it generates Late Detect Array Bounds Write (ABWL) or Late Detect Free Memory Write (FMWL) messages in the Error View.
§ To specify the number of seconds you want to elapse between heap operations, use PurifySetLateDetectScanInterval.
§ This function is especially useful when you are using minimally instrumented modules.
§ You can also specify this information in Late detect scan counter in the Advanced tab in the Purify settings dialog boxes.
§ Late detect scans can impact run-time performance, depending on how often Purify performs the scan and how many blocks are allocated when Purify performs the scan.
(C) Copyright IBM Corporation 1992, 2010.