Friday, March 07, 2008

Silverlight 2 SDK, Mac OS X and Mono

John Lam has posted two introductory articles [1],[2] that use the Dynamic Silverlight SDK . It came as no surprise that only Microsoft operating systems are officially supported for the SDK. So after downloading and installing it onto a VMWare image running one of the supported operating systems, I decided to try installing it on my Macbook Pro. I copied the SDK directory structure across, installed the Mono 1.2.6 for OSX, and John's demos. Then in a terminal session, started chirod, the SDK local web server in the flickr_start root directory.

mono ~/Silverlight/v2.0/Tools/Chiron/Chiron.exe /b

and was presented with the following:

Microsoft(R) Silverlight(TM) Development Utility. Version
Copyright (c) Microsoft Corporation. All rights reserved.

Chiron serving '/Users/mark/swdev/demos/flickr_start' as http://localhost:2060/
mono(2077,0xa000d000) malloc: *** Deallocation of a pointer not malloced: 0x14f5b4; This could be a double free(), or free() called with the middle of an allocated block; Try setting environment variable MallocHelp to see tools to help debug
23:44:00 200 2,340 /index.html
23:44:00 200 2,397 /assets/stylesheets/error.css
23:44:01 200 552,610 /app.xap

The error didn't affect the functionality of the Silverlight demo.

I then tried the flickr_end demo and discovered what error messages look like under the SDK environment.

This error also occurs under Windows so it would appear that John is using a newer version of Silverlight 2 and/or IronPython that handles the line of python code.

Anyway it looks like I will be able to use my Mac environment for Dynamic Silverlight development.