Geeks With Blogs

News
WinToolZone - Spelunking Microsoft Technologies
I work as a developer on the Common Language Runtime (CLR) team, specifically in the areas of exception handling and CLR hosting.
Disclaimer

The information in this weblog is provided "AS IS" with no warranties, and confers no rights. This weblog does not represent the thoughts, intentions, plans or strategies of my employer. It is solely my opinion. Inappropriate comments will be deleted at the authors discretion. All code samples are provided "AS IS" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.

Inside and Out... An attempt to understand technology better... December 2007 Entries
[Download] MemAnalysis - Native memory leak analysis tool
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 ......

Posted On Wednesday, December 26, 2007 2:58 PM

Using Detours for API interception
Detours is a very interesting library from Microsoft Research that allows you to intercept Windows API calls that an application makes and redirect them to your code that can then: do some pre-and-post processing work around the call to the original API, and/or customize what is returned to the caller of the API This does not involve accessing original application source code and can be done at runtime! For an example, check the screenshot below for a sample that intercepts calls to GetVersionEx ......

Posted On Sunday, December 23, 2007 11:18 AM

Advanced Windows Debugging

The book is a must have for every serious Windows developer!

Posted On Saturday, December 22, 2007 9:00 PM

Integrating Windows Live Authentication in your application
For one of my pet projects I am writing, I was contemplating how to integrate Windows Live Authentication with my standalone application, similar to Windows Live Messenger. Turns out, it is really easy! Below are the three steps that were needed for the integration: Download the Windows Live Client SDK from here and install it. Create a new project and add reference to Microsoft.WindowsLive.Id.Cl... assembly Write code similar to the one below: using System; using Microsoft.WindowsLive.Id.Cl... ......

Posted On Sunday, December 16, 2007 11:42 PM

[Article] AppDomains and Unhandled Exception Notifications
One always strives to write exception safe application but there are times when an exception can go unhandled. In the .NET Framework, the AppDomain class exposes the UnhandledException event that can be used by by the managed application to know when an exception has gone unhandled. In the writeup, AppDomains and Unhandled Exception Notifications, I discuss the specifics of when and how this notification is made, what is the relationship between the thread that had unhandled exception and the AppDomain(s) ......

Posted On Saturday, December 15, 2007 9:46 PM

Copyright © Gaurav Khanna | Powered by: GeeksWithBlogs.net