The Stack Display

The stack window displays the stack of procedures that are active at a given execution point. It can be activated at any time by clicking in the stack button at the bottom of the editor.

 

The ‘_MainWndProc@16’ is the active procedure. Note that symbols are displayed with their decorations as they appear in the executable.

The name of the function appears, followed by the source file and line number.

The next lines show the argument stack for the procedure with the type of each argument and their values.

When the information is not available (i.e., a system DLL), only the machine address where the call up was implemented is shown.

 

Note that ‘MainWndProc’ is a callback procedure. You can determine this because USER32.dll and ntdll.dl appear as active in the stack. Note that the user function ‘InitializeApp’ is also active. This is the normal case for processing a WM_CREATE message. When you call up CreateWindow, this function sends a WM_CREATE message to the window procedure before returning to the caller.

You can view the code of any active stack procedure by clicking on the corresponding line. Note that you should click on a function name and not in the parameters. When you click on a function name, the debugger will bring that part of the source code into view.