Using a Custom Proxy For Interception

I’ve been working on a system that required intercepting the method calls in an object model; basically I was trying to use Aspect Oriented Programming to weave in some logging and verification code.  My first attempt was to simply add an object sink to a ContextBoundObject as discussed in the following msdn article: http://msdn.microsoft.com/msdnmag/issues/03/03/ContextsinNET/default.aspx. While…

3

Why UI Automation Is Not All That And A Bag Of Chips

I spent some time today looking at an issue on a Korean system where a test was searching for a specific item in a combo box.  The test would iteratively select each item in the combo box, examine it and continue looping until it found the right entry.  The only problem was, this particular test was failing. …

0

The Designer Process That Would Not Terminate (Part 2)

In my previous post (http://blogs.msdn.com/geoffda/archive/2007/08/31/the-designer-process-that-would-not-terminate.aspx) I talked about an issue where RCWs (Runtime Callable Wrappers) awaiting garbage collection were holding references to a COM object and preventing it from being deterministically shut down.  In this post, we’ll continue the discussion–this time focusing on how to use the debugger to track down such a problem. To facilitate this…

2

The Designer Process that Would Not Terminate

I recently was asked to take a look at some VSTO test automation that wasn’t behaving correctly on lab machines.  The test was fairly simple; it created a VSTO Excel project, dirtied the document, closed the designer window without saving, and then reopened the document to verify that it was not dirty.  However, it turned…

3