Please enable JavaScript to view this site.

Memory Validator Help

Navigation: Native API > Native API Reference

Lifetime Allocations

Scroll Prev Top Next More

Some application designs make use of allocations that are intended to last the lifetime of the application.

 

Typically such allocations will be assigned to static variables and they will never be deallocated.

 

It is useful if these allocations can be marked as "lifetime allocations" that are intended to leak.

 

The Memory Validator user interface will not identify lifetime allocations as leaks, thus removing clutter from your memory leak reports.

 

mvMarkMemoryAsLifetimeAllocation()

 

Mark memory at this address as a lifetime allocation.

 

extern "C"

void mvMarkMemoryAsLifetimeAllocation(void        *address);

 

 

mvMarkHandleAsLifetimeAllocation()

 

Mark this handle as a lifetime allocation.

 

extern "C"

void mvMarkHandleAsLifetimeAllocation(HANDLE        handle);