Slightly lighter than HashSet<WeakReference> – HashSet<GCHandle> (an experiment)

In playing around with the possible solutions or improvements to [previous post:] the heaviness of finalizable WeakReference objects, an obvious thing to do was replace WeakReference objects with using GCHandle structs. Here’s a test program which adds many WeakReferences to a HashSet. (Note, HashSet uses arrays as the underlying storage.) The WeakReferences will point at…

2

WeakReference collections and the heavy WeakReference class

Briefly diverging from regular posts: here’s something really fun. As far as I know, prior to 4.0, .Net has had, two built in ways to do weak object references. 1) WeakHandle 2) GCHandle, which is what WeakHandle uses under the covers. If you have ever tried to use WeakHandle in a collection, e.g. attempt to…

1

Custom ‘Activity Sequences’ With Private Implementation (Part 1)

[Here’s a post covering some custom activity scenarios that should be pretty easy when you know how, but the problem is learning how. Including scheduling, variables, and implementation children.] Some popular things to do when writing custom activities seem to be 1) creating a group of activities which should execute together in a fixed pattern…

2

More from PDC

Not to forget the interests of regular readers, you can get some of the latest WF news from Ron Jacob’s Windows Workflow Foundation Futures PDC talk. Updating with the direct link: http://player.microsoftpdc.com/Session/3b87c17b-a218-40d3-984f-78a012331dee should work. WARNING! There’s over 11 minutes of intro music so please skip past.   There’s some introductory information and motivation for workflow…

0

Post PDC

PDC is done! To me PDC is a major disclosure event – where afterwards we minions are finally able to mention the things that were hidden waiting in the wings for the big unveil. But are now happily in the public domain. And it’s also a good chance now to see lots of interesting demos,…

2

Customizing Commands in Workflow Designer, for Custom Activities in VS

(Note: The previous article on customizing commands for a rehosted Workflow Designer is here. It is probably better to go that way if you are only shipping designers in rehosted scenarios.) Due to another forum thread on customizing command behavior for workflow activities, I have been trying to create custom activities which override the workflow…

0

VS, DTE, COM and COMException, Part 2 – PreserveSig (:-P)

Part 1 is here. At the end of Part 1, I’ve decided it’s time to try this COM Message Filter thing out. Implementing the IMessageFilter interface and registering the message filter turns out to be not hard at all, because really, in our case the message filter doesn’t need to do anything complicated, it just…

0

Counting down to PDC 10…

Only 8 more days to go ‘til October 28! PDC is sold out, but if you’re not attending in person, 1) keynotes and sessions are going to be streaming live 2) there might be a local event in your area to attend. Locations are listed here. For all 6 continents. I’m looking forward to it!

0

Rory tackles Dependency Injection

It might be the first time I someone contacted me to about a blog they wrote about custom WF activities. Of course I was chuffed that they thought I might be interested. The articles really were interesting to me so I’m doubly happy to link them: http://www.neovolve.com/post/2010/10/01/Custom-Windows-Workflow-activity-for-dependency-resolutione28093Wrap-up.aspx Quick spiel: Not only does Rory Primrose tackle…

0