Booting Windows 8 from a virtual disk

I have now installed Windows 8 developer preview on my main machine. I did this by looking at a couple of blog posts from primarily Scott Hanselman. Guide to Installing and Booting Windows 8 Developer Preview off a VHD (Virtual Hard Disk Less Virtual, More Machine – Windows 7 and the magic of Boot to [...]

Tags:

Dapper-dot-net aka Micro-ORM

a simple object mapper for .NET After listening to Hanselminutes show #262 I became curious and have looked a bit at Dapper to check what it really is. First of all, it’s implemented as a single file you can drop in your project. It’s created for and at stackoverflow. I heard somewhere that it should [...]

Tags: , , ,

Using WinDbg to inspect native dump files

Just a very short instruction on how to inspect native dump files with WinDbg: Get and install and then start WinDbg File – Open Crash Dump ~*kb Lists all the threads and their call stacks. !locks Will show you the critical sections. LockCount – RecursionCount – 1 = the amount of times the lock has [...]

Tags: ,

Getting started with managed dump files using WinDbg

Why If you have an application built on pre .NET 4.0, you can’t use Visual studio to debug a dump file. Even if you can use Visual Studio, WinDbg offers a nice alternative and some extra features in some scenarios. For example help finding deadlocks and a faster way to scan a lot of threads. [...]

Tags: , ,

How to debug a short hang

What can I do? When Bob the tester comes, and tells me that the client application sometimes hangs for about 30 seconds, when Bob is doing nothing. This client, and a hand full of other clients are connected to a system of connected servers. The problem could be a busy server or some internal client [...]

Tags: , ,

Performance nightmare

22 to 0.3 seconds! I found a simple solution to a very common problem. While profiling I found that remove in this little method took a lot of the time. public void MovePropertyFirst(IProperty property) { properties.Remove(property); properties.Insert(0, property); } The reason was, that it’s time consuming to compare the properties by equality, for complex types. [...]

Tags: , , , ,