VS2008 Xaml designer crash in Parallels

I’ve been struggling the last couple of weeks with the Xaml designer crashing in Parallels.
Had to revert to VMWare, which I find a bit less user friendly than Parallels and slower.

Turns out, the problem was that I had enabled the experimental hardware accelerated DX9 thingy in Parallels. Turning this off gave me my life back. 🙂 Off to send an email to the Silverlight team to look away from the debug dump they got from me.

So if you’re in Parallels – don’t enable the option with the big fat warning sign on it. 🙂



I want to start producing some screencasts with focus on my two favorite technologies these days; Silverlight 2 and Xna, but find myself at a loss for what I should create. I am also open to suggestions to other things to create screencasts for.

Please leave me a comment if you have suggestions to topics you want to learn more about.
There is very little Norwegian content out there, so I have an idea about focusing the content on Norwegian, I’m not sure if the audience would want this. Please leave a comment about preferred language as well, that way its easier to figure out what people want.

Ofcourse – if you don’t want me to create screencasts, that would also be a comment to leave.

.net, C#, Mobile

Getting the current process filename on Windows Mobile

I´ve been working freelance on a Windows Mobile project for a client and for the project we wanted to have the application update itself over the internet and wanted the same experience one gets with ClickOnce on Windows and a simple API for any Mobile based application for handling updates and such.

In order for this to work I needed to have a seperate executable/entrypoint that was our update service running in the background handling all the gritty bits, this would then spawn the application. Because of a rather bad user experience having to start a different process than the one actually needed, I decided to have our update service installed with some registry entries to point out where it was installed and add an initialization method for our update service for the application to call. Anywho, long story short – I needed a way to figure out what process was running on the device and the filename of it to distinguish in which context the initialization was called.

Normally one would go about doing this by calling Assembly.GetEntryAssembly() – but the compact framewok does not have this method. Other ways are to go and call Assembly.GetCallingAssembly().GetModules()[0] and get the fully qualified name from there, but this didn´t work out in all conditions either. The solution is to p/invoke the GetModuleFileName() method from coredll – turns out it exists, even if the documentation does not list Windows Mobile in the supported platform section.. 🙂

Parallels DesktopScreenSnapz003.png


.net development on the Mac

Out of curiosity I wanted to see how one develops software for the Mac OSX, therefor I started looking at Mac development the last week and registered as an Apple developer and downloaded XCode, browsed through a bunch of tutorials and started hacking away. Fired up XCode and created a Obj-C Cocoa application, opened Interface Builder and got used to it. Hooked up actions and outlets and found the experience quite enjoyable. Interface Builder does not automagically generate the “code-behind” that I´m used to from my time as a WinForms developer, you actually have to tell it to do so explicitly (at least was far as I´ve figured out. Hopefully I´m wrong – anyone?). So far so good. I have my user interface defined and have a .H and .M file to start coding. Being an old C/C++ developer, I get comfortable with the a lot of the library (Stdio, stdlib, std*).

A couple of hours into it all I just loose interest. I am a C# and .net developer at heart and start missing my comfort-zone. Then it pops into my head; I remember something vaguely called CocoaSharp, and I know I got the option of Mono. Google it is.

Mono had an update on the 1st of August, version 2.0: http://www.mono-project.com/news/archive/2008/Aug-01.html

It supports C# 3.0 and LINQ.. Ahh.. I´m saved.

Then it´s off to download CocoaSharp and get the plugin for XCode and get all my C# goodness, .net library and LINQiness back.

Any other tips would be really appreciated – please leave me a comment.

Update, 28th of august:

Video tutorial for how to get started can be found here. You’ll find the XCode plugin here.

Community, Game Development

Game Camp – an officially recognised organization

In Norway, when you have a non-profit organization and you deal with money, such as sponsor funding or similar, you need to be registered with the authorities. The sponsor won´t be able to transfer any money to you unless you have an organization code provided by the authorities. We´ve been working to get Game Camp registered as this for a while now and finally today we got the message that out application has been accepted.

Which is kind of perfect, seeing that we´re in the midst of finalizing everything for our event on the 26th of september.


New blog design – and move at the same time

Im relaunching myself with a brand new design at a brand new location.

This blog will continue over at the following URL:

For those of you who´ve been subscribing through the Feedburner URL will not notice any outtage, everything has been updated and redirected properly.

If you´re still subscribing to the old RSS link, please update to the Feedburner one above.

Hope you´ll enjoy the new design and keep on reading my ramblings. 🙂

Please leave me a comment if you have any. Also if you feel like your missing something, or you find the design to be ugly or non functional. Any feedback is greatly appreciated.

And now for some credits.

I´ve done the design partially myself. Believe me when I say I´m no graphics artist or designer, so I have to get inspiration and "borrow" ideas from here and there. The top header is ofcourse my own, but the content part is a modified version of the Gluttony WordPress Theme that was adopted to BlogEngine by GravityCube. In addition to this, I´ve gotten the contact actions icons and BlogEngine.net code for using them from David Burke, thanks again for helping me out.