Archive

Archive for September, 2009

WinDbg and managed apps

September 29, 2009 Leave a comment

I’d blogged earlier about a tutorial on WinDbg. Here’s a “How to” on using WinDbg against managed apps.

Advertisements
Categories: .net Tags:

Reading command line of another process

September 24, 2009 Leave a comment

Colleague Doug mentioned a need to be able to read the command line of another process from PowerShell.

My 1st attempt was to port Felix Kasza’s code into C# as I’d done back in my VBA days. Unfortunately, neither of our apps work in Vista x64.

I then switched to WMI and had much better luck (without pain as well). Further searching afterwards on how exactly the WMI team accomplished this led me to Raymond Chen’s blog.

namespace CmdLineReader {
    using System;
    using System.Management;

    class Program {
        static void Main( string[] args ) {
            try {
                if ( args == null || args.Length != 1 ) {
                    Console.WriteLine( "Please provide a process id." );
                    return;
                }
                string qry = string.Format( @"select CommandLine from Win32_Process
                                        where ProcessId={0}", args[ 0 ] );
                using ( var searcher = new ManagementObjectSearcher( qry ) ) {
                    using(ManagementObjectCollection coll = searcher.Get()) {
                        foreach(var o in coll)
                            Console.WriteLine("[{0}]", o["CommandLine"]);
                    }
                }
            } catch ( Exception exc ) {
                Console.WriteLine( exc.ToString() );
            }
        }
    }
}
Categories: .net Tags:

WPF over Citrix

September 22, 2009 Leave a comment

The topic of running WPF apps over Citrix has come up in the past. Here’s a good summary (3/4th of the way down) of issues and tips on this (amongst other goodness).

Categories: .net Tags:

VS Theme Generator

September 17, 2009 Leave a comment

For those who like to tweak colors in the IDE.

Categories: .net Tags:

LSE dumping .Net?

September 17, 2009 Leave a comment

The London Stock Exchange acquired MilleniumIT yesterday. From their site, they appear to be a Unix/Oracle shop. So I assume that the systems used by Microsoft to showcase .Net (and what appeared to be the cause of the LSE outage) will be retired.

It seems that Chi-X is also planning an IT overhaul.

I wonder what, if anything, Microsoft intends to do to prevent erosion of their (little) piece of middle-tier pie in the financial industry.

Categories: .net, Finance

JavaScript Framework comparison matrix

September 14, 2009 Leave a comment

This matrix, complete with code examples, is a good reference for evaluating different JavaScript Frameworks (I’m biased towards Ext JS myself).

Too bad Google Web Toolkit is missing from the matrix.

Categories: AJAX

Official MS Team blogs

September 14, 2009 Leave a comment

The list is here.

Categories: Uncategorized