PurifyNewLeaks

Example       Related Topics

Description

Reports all new memory leaks since the last call to PurifyNewLeaks or PurifyClearLeaks.

Syntax

int PurifyNewLeaks(void)

Returns

n

Where n is the number of leaked and potentially leaked bytes.

0

Purify didn't detect any new leaks, or Purify is not running.

Notes

§      When you call this function, Purify generates Memory Leak (MLK) and Potential Memory Leak (MPK) messages in the Error View.

§      By default, Purify calls this function internally through the setting Report at exit: Memory leaks.

§      Calling this function repeatedly in a program that contains a large number of allocated blocks can slow down the instrumented program at run time.

§      You can call PurifyNewLeaks interactively by clicking images\newleaks.gif while your program is running.

(C) Copyright IBM Corporation 1992, 2010.