Author Archives: Ben

x86 .Net Assembly, Scala, and a x64 processor. Oh My!

While playing around with Scala.Net today I ran into an interesting problem. I was trying to build some Scala code against an assembly built for x86 and I got an exception when I ran the executable: Unhandled Exception: System.BadImageFormatException: Could … Continue reading

Posted in .Net, Scala | Comments Off on x86 .Net Assembly, Scala, and a x64 processor. Oh My!

Calling Scala from C#

Yesterday, I figured out how to call some C# code from Scala. It is a small leap to then call Scala from C#. The process just gets turned around: instead of creating a C# class library and referencing it from … Continue reading

Posted in .Net, C#, Scala | 3 Comments

Getting Started with Scala.Net

Reporting from the Programming Summer Camp in Crested Butte, Colorado. This has got to be one of the better places in the world to code. We had a great warm up bike ride this morning, then settled in for an … Continue reading

Posted in .Net, Scala | Comments Off on Getting Started with Scala.Net

Kinect: Getting Started

Microsoft released its Kinect SDK yesterday. It can be found here. I spent yesterday afternoon building my own sample application to explore the API and Microsoft’s samples. The API documentation is fairly comprehensive and the getting started guide is a … Continue reading

Posted in .Net, Kinect | Comments Off on Kinect: Getting Started

Git Immersion

So far in my time at SRT I have used both Mercurial and Bazaar, but I hadn’t gotten around to Git until yesterday. I finished the Git Immersion tutorial by Jim Weirich and would highly suggest going through it. There … Continue reading

Posted in Uncategorized | Comments Off on Git Immersion

Silverlight follow-up: WPF memory leak

In my last post, I wrote about a memory leak that is easy to come by in WPF. I converted the WPF test application I was using to Silverlight to see whether or not Silverlight suffers from the same memory … Continue reading

Posted in Silverlight, WPF | Comments Off on Silverlight follow-up: WPF memory leak

WPF Gotcha: Easy Memory Leak

I strongly suggest that you implement INotifyPropertyChanged on any class that will be a binding source. I’ve been doing some memory profiling recently and ran into a HashTable outside of my code that was holding on to a reference to … Continue reading

Posted in WPF | Comments Off on WPF Gotcha: Easy Memory Leak

Bindable DataGrid Columns

Currently the WPF DataGrid supports two ways in which to generate columns: AutoGenerate and XAML declaration. AutoGenerating columns will produce a column for every property in the ItemsSource class, but the behavior can be altered by using the AutoGeneratingColumn event … Continue reading

Posted in C#, WPF | 6 Comments

Ribbon Tab Definition on UserControl

We’ve been using the Ribbon control provided by Microsoft on a project I’ve been working on. We started with the WPF toolkit Ribbon but recently upgraded to the .Net 4.0 version. The 4.0 version is much better than the WPF … Continue reading

Posted in srt, WPF | 9 Comments

WPF – Combo Box SelectedItem Binding

I recently was debugging a strange issue we were seeing with our combo boxes. When the data context changed, the combo box would lose the selected item and appear blank but the list of possible selections would be correct. I … Continue reading

Posted in srt, WPF | Comments Off on WPF – Combo Box SelectedItem Binding