Code Sample – StackTrace with manual Symbol lookup

// Sample to demonstrate creating a stack trace with source location information while controlling // how PDB files are located. // Written by Rick Byers – http://blogs.msdn.com/rmbyers // 6/21/2007 – Initial version using System; using System.Collections.Generic; using System.Diagnostics; using System.Diagnostics.SymbolStore; using System.Runtime.InteropServices; using System.Reflection; // Use MDbg’s managed wrappers over the corysm.idl (diasymreader.dll) COM APIs…

3