An interview with me about The Performance of Everyday Things

At the April 2008 Devscovery (http://www.Devscovery.com) event in New York, I recently did a new talk entitled “The Performance of Everyday Things”. The talk is about the performance of using everyday constructs in .NET/C# such as method calls, arrays, loops, garbage collection, and much more. I will be repeating this popular talk at the Redmond,…

Reading XAML from a Silverlight Application Assembly

I was having dinner with Walt Ritscher tonight when he posed an interesting question: how can a Silverlight app load its own XAML from an application assembly? I thought I knew the answer, because I had just finished doing a lot of research into the various ways to package code and resources in Silverlight 2.0. And…

Windows via C/C++ Table of Contents

Some (potential) readers have asked me to post the complete table of contents for my new Windows via C/C++ book. Here it is:   Part I Required Reading 1 Error Handling 2 Working with Characters and Strings 3 Kernel Objects Part II Getting Work Done 4 Processes 5 Jobs 6 Thread Basics 7 Thread Scheduling,…

Thoughts on ASP.NET’s New MVC Framework

I took a break from Silverlight to spend some time with Microsoft’s new ASP.NET MVC framework. It’s one of the features of the ASP.NET 3.5 Extensions Preview, and as such, it offers a tantalizing glimpse at what the ASP.NET of the future might look like. I felt compelled to write down some thoughts after I got…

Debugging VBA Macros and Managed Components at the Same Time

This week I got the following question in email: I’m writing a COM component in C# that is used in Excel VBA macros. I really need to debug the VBA macro and the C# component at the same time. Is that possible? Absolutely! Here’s the steps: Start Visual Studio with no projects open. Select the…

WinUnit: An Outstanding Native C++ Unit Testing Tool

Whew! I can finally talk about one of the coolest pieces of code I’ve seen in ages: WinUnit. About a year ago, my friend, Maria Blees showed me an idea she had for unit testing native C++ code and asked if I thought it was any good. It was far more than good it was…

Additional .NET Framework Source Code Debugging Tricks

With the big announcement today, everyone’s looking at the Framework sources like mad. Make sure you read everything in Shawn Burke’s blog entry before you start. I thought I’d mention a couple of additional hints to help you out. If you’ve been downloading your symbols with the Microsoft Symbol Server, make sure to delete your…

Security Implications Of Services Impersonating Callers

In my last post (Caller Impersonation for WCF Services Hosted Under IIS Appears Broken), I laid out my rationale for why I felt that the security of services impersonating a caller when hosted under IIS was broken. To be responsible, I feel it necessary to follow-up my previous assertion by noting that such a configuration…

Updated Debugging Microsoft .NET 2.0 Applications Source Code (3.2.11114.1)

After four or five reports that the SettingsMaster Add-In was failing to create it’s toolbar on some systems, I finally gave up and quit relying on what the Visual Studio documentation says about the ext_ConnectMode.ext_cm_UISetup on OnConnection. On some systems it turns out that there is no way in the world that message is sent.…

Why I’m Not Writing a Native C++ Debugging Book

In the introduction of my book Debugging Microsoft .NET 2.0 Applications, I said I was going to write a second book focused on native C++ debugging. I’ve got a great outline prepared that has all sorts of interesting ideas. Some of the highlights are a complete focus on very advanced native usage of WinDBG. Things…

Updated Debugging Microsoft .NET 2.0 Applications Source Code (3.2.10905.1)

There’s been two bug reported in the code so I fixed them. Here’s the updates from the Change Log: Fixed a bug in Wintellect.DiagnosticsConfigTraceSwitchWatcher.cs reported by Burke Attilla where I was not properly handling internationalized paths when looking for the .VSHOST. string. For Vista installations, properly set the InstallPrivileges property in Debugging.wxs and WintellectToolsInstall.wxs. Fixed…

Implementing Drag-Drop in ASP.NET AJAX

Several folks requested the source code for the ASP.NET AJAX drag-drop example I alluded to in an earlier blog post. Here are the key parts of it (along with some explanations of how it works) that you can borrow using editor inheritance–I mean, cut-and-paste. The first thing you must do to implement rich drag-drop scenarios in ASP.NET…