Skip to main content

Posts

Windbg stack tracing

This is a very crude documentation only. If you got "Module load completed but symbols could not be loaded for....." do the following to investigate: kd> !sym noisy kd> .reload This should pin point why debug symbols are not being loaded. To use the Microsoft Symbol Server 1. Make sure you have installed the latest version of Debugging Tools for Windows. 2. Start a debugging session. 3. Decide where to store the downloaded symbols (the "downstream store"). This can be a local drive or a UNC path. 4. Set the debugger symbol path as follows, substituting your downstream store path for DownstreamStore. SRV*d:\msdndebug*http://msdl.microsoft.com/download/symbols This will download debug symbols to d:\msdndebug automatically. If you got "Couldn't load mismatched pdb for appname.exe", you can force Windbg to load the pdb file via : kd> .symopt 0x40 kd> .reload To check if the symbols match: #>!itoldyouso bff c:\path\bin\bff

Test code

This is only a test of formatting source code in Blogger. See http://code.google.com/p/syntaxhighlighter/ for details. Use Notepad++ when copying source over from clipboard. Option Explicit Sub Main() Include "Common.TWin32TreeView" Dim wtv As TWin32TreeView 'Window("Desktop Window").Attach Window("Application=Explorer.exe ClassName=CabinetWClass TypeName=Window").Attach Set wtv = New TWin32TreeView wtv.Handle = TreeView("Index=1").hwnd Dim sMsg As String sMsg = "Root item is " & wtv.GetRootItemText sMsg = sMsg & vbCrLf & "Selected item is : " & wtv.GetSelectedItemText 'MsgBox sMsg If wtv.IsSelectedItemExpanded Then MsgBox "selected node is expanded" Else MsgBox "it is not yet expanded" End If End Sub