Monthly Archives: August 2008

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. 🙂

Screencasts

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.

We congratulate the first Norwegian MVP in 2008

Congratulations to Mr. Einar Otto Stangvik on his achievment on getting the MVP title from Microsoft.

You can read more about Einar over here. If you want to learn more about the MVP program, you’ll find details here.

NNUG Silverlight Talk – Tuesday, 26th of August

I´m holding a Silverlight talk on the 26th of August. The talk will go beyond the regular demos and talks you see there and I´ll try to show the real potential of Silverlight and why it should be a technology to really count on in the future.

If you happen to be in Oslo and want to learn more about Silverlight, don´t hesitate to register for here.

NNUG Silverlight Talk – Tuesday, 26th of August

I´m holding a Silverlight talk on the 26th of August. The talk will go beyond the regular demos and talks you see there and I´ll try to show the real potential of Silverlight and why it should be a technology to really count on in the future.

If you happen to be in Oslo and want to learn more about Silverlight, don´t hesitate to register for here.

Moonlight with alpha support for Silverlight 2.0

This is actually not a "breaking-news-story", but nevertheless something that I thus far haven´t seen posted anywhere on the Silverlight feeds I´m subscribing to.

The Moonlight project initiated by Novell is actually at an alpha support stage for Silverlight 2.0. With this support we can truly go cross-platform with Silverlight in the future.

Read more here.

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.

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.

Silverlight 2 tools for VS2008 SP1

In conjunction with the release of SP1 for VS2008, the Silverlight team has released an update for the Visual Studio 2008 tools for Silverlight 2. It can be obtained from here.