• Remote Desktop spanning two monitors

    If you participate in the Windows Vista beta program and you use Remote Desktop, then you might want to have a look at the new RDP client. There’s a version for XP SP2 and 2003 SP1.

    The main feature that interested me was that it now supports spanning multiple monitors. I’ve installed it on my XP SP2 box at home, and I can now connect to my XP SP2 box at work and have my desktop span across both of my monitors! I didn’t even need to install the new client on my work box to get this either.

    The resolution limit is up to 4096x2048

  • Transactions and Unit Testing with NUnit (part 2)

    The good news - I got the transaction unit testing code to work. Two traps that caught me out:

    1. Make sure the test fixture class inherits from the class defined in the transaction library assembly.
    2. Make sure your machine has a valid DNS entry! Turns out mine didn’t as I’d reinstalled the OS a couple of months back, and our Active Directory DNS had kept the old record with a SID for the old machine - hence the new install had a different SID and wasn’t allowed to update the DNS record. This had the effect that the remote server could not resolve my workstation to get the RPC conversation working properly.

  • Code analysis without buying Visual Studio Team System

    If you download the Microsoft® Windows® Software Development Kit (SDK) for Beta 2 of Windows Vista and WinFX Runtime Components, then you actually get the C++ compiler that includes support for the “preFAST” /analyze code analysis feature.

    Normally, you’d only get this if you purchased Visual Studio Team System for lots of $$$.

    I installed it, and managed to get Mozilla Firefox compiled (just a couple of patches required - problems with the new headers in the SDK conflicting with Mozilla code).

    The easiest way to analyze the code is to edit your mozconfig file and add the following:

    ac_add_options --enable-optimize="-analyze"

    I’ve uploaded a build log that includes the various warnings. Many are spurious, so the trick is to weed out the noise and find the ones that are relevant.