View Full Version : Why should I set an allocation focus?

02-04-2007, 06:48 AM
The backtraces that MemoryScape displays are the one sthat existed when your program allocated the memory block. It also highlights the stack frame that it thinks is the one you should be focusing on. If it guesses wrong, you can reset the hierarchy of backtraces by right-clicking your mouse on the backtrace that you want displayed, then selecting the <b>Set allocation focus level</b> command.
<p>Doing this makes it easier to understand the information being displayed.
<p>For example, suppose you've written you're own memory management routine that is always called when your program wants to allocate and deallocate memory. In this case, you may want to set the focus one level up the call stack from your own menory management routine.