Debugging
Advanced Windows Debugging got me hooked onto Detours and that led me to experiment with it a bit more. It resulted in this. Over the past three days, I have been working on using Detours to build a memory leak detection tool. MemAnalysis is finally done (v1, that is) and can track memory allocation and release when done using the following APIs: VirtualAlloc VirtualFree HeapAlloc HeapFree HeapDestroy Once the application being analyzed exits, MemAnalysis produces a report with details on how many...
The book is a must have for every serious Windows developer
[Original Post Date: 9th October 2005] I just finished implementing WIVisualizer, a WindowsIdentity debugger visualizer for Visual Studio 2005. It displays important details like: Username Authentication type Impersonation Level Account type - System or Guest Anonymous or Authenticated identity Windows groups the identity is member of Here's a screen-shot for the same: It has been built using the Visual Studio 2005 Release Candidate and can be downloaded from here. To install, simply copy the DLL...
[Original Post Date: 18th September 2005] Starting from 20th of September, Technology Roadshow starts in India. We are going to 6 different cities and doing two complete days of technical sessions across a breadth of technologies: for developers, IT professionals, Windows Mobile and Tablet PC developers and Architects. Below are the dates for the same: City Day 1 Day 2 Mumbai 20th Sep 21st Sep Pune 22nd Sep 23rd Sep Chennai 27th Sep 28th Sep Hyderabad 30th Sep 1st Oct New Delhi 4th Oct 5th Oct Bangalore...
[Original Post Date: 16th August 2005] System.Diagnostics.Process class is a managed wrap over a subset of the ToolHelp API - as it enumerates only the process list. Not only that, it will list all the running processes, irrespective of whether they are running unmanaged code or running managed code. What if you wish to identify which of these processes are running managed code? Unfortunately, neither the ToolHelp API, nor the Process class allow us to identify managed processes from the list they...
One of the debug visualizers shipped with VS 2005 Beta 1 is the DataSet/DataTable visualizer that allows you to visualize a DataSet and DataTable in a grid. However, it doesn't let you view a DataView object. To overcome this, I have written the DataViewVisualizer that allows you to analyze a System.Data.DataView object during debug time and see how it under goes changes when its modified or filters are applied. For instance, when a DataView object is hovered upon by the mouse and the visualizer...
For those who have worked with WinDBG, Son-of-Strike (SOS) wouldn't be an unfamiliar territory - the debug extension which allows decently deep managed code debugging. For those who would want to go even deeper than SOS, download PSSCOR, the superset of SOS, from the link below: http://blogs.msdn.com/mvsta... Once downloaded, .load PSSCOR and issue the !Upgrade command to get the latest version...