Example: Viewing Painted Memory
If you turn on memory block painting before starting your program, you’ll be ready to observe memory being allocated or deallocated. For example, the variable addr has not yet been allocated:
After allocation, note the bit paint value:
NOTE: To identify exactly when a program has allocated or deallocated memory, change the deallocation pattern during a debugging session. This will show you memory allocated or deallocated before or after the bit pattern changed, so you can isolate the point in your program when it occurred.