Horrible error running against a 32bit .Net Library from a 64bit application

So, this is my first new dev project on my shiny new Windows 7 64bit machine (having come from a 32bit Vista box). As it happens, I want to use the Microsoft Data Visualization Components, which are only available as a set of 32bit DLLs compiled sometime in 2006.

OK, all good so far – loaded ‘em up, referenced them, threw a TreeMap control on my form, compiled fine and then ran it, and… Bang!

Got a message;

Could not load type ‘Microsoft.Research.CommunityTechnologies.Treemap.NodeColor’ from assembly ‘TreemapGenerator, Version=1.0.1.38, Culture=neutral, PublicKeyToken=3f6121a52ebf7c82′ because it contains an object field at offset 0 that is incorrectly aligned or overlapped by a non-object field.

Turns out the problem is that I’m referencing a 32bit component from a 64bit application, and [...]

Downloaded CHM help file shows “Navigation to the webpage was cancelled”

Huh – that was an odd one. I copied a bunch of controls over to my Windows 7 box and the DLLs work, but the help files are stuffed;

It seems this is common problem, fixed by right-clicking the CHM file and clicking on an “Unblock” button which I’ve never seen before!

I can’t claim credit for this – found it at Rob Chandler’s blog here. Weird sense of priorities, huh? OK to copy and run any old DLL that you found lying in the bin, but a helpfile? Woooohhhh… no… that’s much [...]

Microsoft Data Visualization Components on Windows 7

I’ve been playing around with the Data Visualization Components recently (looking to incorporate the TreeMap control with a SequioaView-a-like disk space analyser) but ran into problems getting the toolkit installed on Windows 7 RC1. Running the setup from the official page at http://research.microsoft.com/en-us/downloads/dda33e92-f0e8-4961-baaa-98160a006c27/default.aspx gets stuck looking for .Net Framework 1.1.4322;

Of course, being Windows 7, .Net 3.5 is already installed which should include .Net 1.1 but it looks like the Components installer is hopelessly confused. I couldn’t get the installer to believe we had something better than 1.1 already installed and I didn’t want to try and hack .Net 1.1 on top of Windows 7.

So, all I really needed were the “bunch of files” that come in the Component setup so [...]

“The breakpoint will not currently be hit. No symbols have been loaded for this document.” – VS2008

I’d been hacking around with Sharp Architecture (#Arch)a few months back but haven’t touched it recently. However, the release of 1.0 to coincide with the formal release of ASP.NET MVC 1.0 got me interested again, so I downloaded the latest and greatest to see what’s adoing…

There’s a great community around #Arch and it’s pretty easy to get your head around (assuming you’ve a basic grounding in MVC and NHibernate) and it even comes with a sample/tutorial app based on the ubiquitous NorthWind database. Now, being a cautious sort I figured I’d start by getting the NorthWind sample up and running, as this would prove I had all the dependencies installed and wired up.

All you (should) need to do is restore the [...]

Auditing access to a file on Vista

Every so often, when I open Outlook, it tells me that my PST file was not closed properly and it’s being checked for errors. It seems from a spot of googling that this isn’t an Outlook problem as such, more that another app opened my PST and did not close it properly.

Task Manager or Anvir Task Manager (excellent app) shows that, whoever the culprit is, it’s not running the next time I start Outlook. My suspicions are firmly on Skype, especially as there are a ton of postings on it keeping the PST open, but I’ve checked the obvious settings and they don’t seem to be the culprit.

Right, I thought, let’s turn on file auditing and I can see which process [...]

Installing MythTV onto a 586, using a shell script

For background, see Compiling and installing MythTV on a VIA EPIA 800 (586) system

First, the basics. You need to install MythBuntu 8.10 onto your system first. The reason I stipulate this is that MythBuntu already has all the pre-requisite scaffolding and configuration to get MythTV up and running – we are just going to update the applications to be 586-friendly.

You can probably take the manual instructions (see separate post) and get MythTV compiled on anotehr distro but that will take a little experimentation.

So; you’ve got MythBuntu up and running. Now download the script from here, and make it runnable by typing;

  chmod 700 ./BuildMyth586.sh

Then execute the script by either;

  ./BuildMyth586.sh

or

  sudo ./BuildMyth586.sh

the latter may be the best bet as a number [...]

Compiling and installing MythTV on a VIA EPIA 800 (586) system

I have four of these old 586-based 800Mhz EPIA boards lying around and I’ve been desperate to find a (funky) use for them. Eventually, I concluded that these would make great (if not super-powerful) media front-ends and, after a bit of R&D, I settled on MythTV as the app that was going to make this happen.

So I toyed around with MythTV on a faster test box and decided to install the excellent MythBuntu distro onto the EPIA and promptly got extremely confused. Whenever I started any of the Myth apps I was rewarded with… nothing! Starting the apps from the menus had zero effect so I started a shell and ran first the backend (mythbackend) and then the front end (mythfrontend) [...]

Top 10 reasons to use Windows Live Writer for writing your blog posts

Following on from my article on using Live Writer for code snippets, I found this excellent article on WebTechDaily that gives 10 reasons to use WLW for [...]

Posting code snippets on BlogSpot.com

One of the things that surprised me, when I started fiddling around with BlogSpot a couple of months back, is that there is no inherent capability to format source code in a posting.

I came across a few solutions (well, hacks…) and even posted on one solution last month. It was still a pretty yucky solution, though, involving hosting the code snippets at another site and then hacking the HTML to refer to it. It also seemed (although, this could have been my incompetence) to be very easy to screw up the rest of formatting in the posting.

Anyway – I found a better solution! Using Microsoft’s Windows Live Writer, I can compose my postings offline in a much friendlier front end. OK [...]

Anti Virus…

Greetings from Hamburg, Germany…Over here on business; meeting tomorrow and flying back on Friday.

The good news? I flew from Edinburgh (EDI) to Heathrow (LHR) T5 and from there to Hamburg but, because I still have a BA gold card I got to visit the “First Lounge” for the (ahem) first time. All in all, it was a similar experience to the old T4 First experience but they have a separate area for the champagne bar. And so, this morning, I was relaxing with the Times (GoBama being very appropriate) and some canadian bacon, some scrambled eggs and a glass of Krug.

Where was I? Oh yeah; anti virus products…A while ago (two years and five days to be exact) I bought a [...]