Broken WPF Performance Tools

I’ve long thought that WPF Performance Tools for .NET 4.0 from the Windows 7 SDK was completely broken, the Visual Profiler never showed anything. Seems I just hadn’t done a good enough job when searching for a fix.

Now three years later I stumbled across a blog post at msdn.com about a TimeZone fix for WPF Performance Tools that fixed my issue.

http://blogs.msdn.com/b/jgoldb/archive/2010/08/24/timezone-patch-to-wpf-performance-profiling-tools-for-wpf-4-is-now-available.aspx

Trouble with installing Office 2010

Had some issues installing Microsoft Office 2010 today. A couple of hours down the drain. The error I got was the following where the value and GUID varied between each try.

Error 1406. Setup cannot write the value Assembly to the registry key \Software\Classes\{00020906-0000-0000-C000-000000000046}\InprocServer32\14.0.0.0.

This wasn’t an actual permission problem with the registry. Instead it was something called Sentinel HASP License Manager that caused this. After disabling the service and rebooting before retrying the Office installation again it worked. Just stopping and disabling the service did not help. Thanks a lot for that Smartbear (The Sentinel service is installed by Smartbear AQtime)!

Why I prefer vanilla Android compared to HTC Android

I’ve had my HTC Hero a couple of months now and up until recently I used it with the original ROM. After getting no response about crash issues and other annoyances from HTC support I decided to try a different ROM. I’m now using CyanogenMod for HTC Hero (GSM) v1.0 by jnwhiteh which is a ROM based on Android 2.1.

Issues I had with HTC Android that are solved for me now:

  • com.android.phone process no longer crashes every now and then. When it crashes you have to enter your pin-code to be able to receive phone calls again.
  • I don’t use HTC Sync so having the pc synchronization process always running was wasted memory.
  • I don’t use the facebook integration in contacts since I’ve already synced contact photos with my gmail account and I think the facebook app works better for looking at the facebook news feed. Since the facebook/flickr/twitter sync process is always running in HTC Android regardless if you use it or not it was wasted memory and cpu usage for me.
  • The HTC Calendar does not have a week view, the Android calendar does.
  • The HTC Browser is always in full screen hiding the notification bar, I prefer the original Android browser that does not run in full screen so the notification bar is visible.
  • The Android browser seem to crash less than the HTC browser.
  • com.htc.android.htcime leaks assets and asset managers everytime a keyboard is shown.
  • The phone seem a lot faster running vanilla Android compared to HTC Android.
  • com.htc.android.mail is always running even if it is not used, wastes memory and cpu.
  • 3G connectivity seem a lot better now, with HTC Android the phone would drop the 3G connection and never reestablish it until I manually did so.
  • Integration between the different apps is much better in vanilla Android. For example, in the messages app you can see if a contact is online on gtalk and a lot more neat little contact shortcuts.
  • I prefer the look and feel of vanilla Android compared to SenseUI.
  • And there are a lot of nice new features in Android 2.1 compared to Android 1.5. 🙂

For how I use my phone there are a few issues with the Android 2.1 ROM on my HTC Hero:

  • Camera does not work very well.
  • Battery drains a bit faster, it lasts a day (~13-16h) for me now.
  • Gallery app UI is corrupted when changing orientation.

And of course since vanilla Android does not contain SenseUI there are no HTC widgets, HTC keyboard or HTC quick dialer. But so far I haven’t missed them.

Visual Studio crash when choosing items in the Forms designer toolbox

Ran into a strange issue with Visual Studio 2008 SP1 where it crashed, vanished with no errors, if I selected the Choose items menu item in the context menu of the Windows Forms designer Toolbox window. Attaching a debugger and reproducing the crash gave me the following error.

Wed Feb 25 15:47:55.617 2009 (GMT+1): CLR:(

Wed Feb 25 15:47:55.617 2009 (GMT+1): C:\Windows\assembly\GAC_MSIL\System.ComponentModel.DataAnnotations\3.5.0.0__31bf3856ad364e35\System.ComponentModel.DataAnnotations.dll

Wed Feb 25 15:47:55.618 2009 (GMT+1): )

Wed Feb 25 15:47:55.618 2009 (GMT+1): Rejecting native image because dependency C:\Windows\assembly\GAC_MSIL\System.Core\3.5.0.0__b77a5c561934e089\System.Core.dll is not native

Wed Feb 25 15:47:55.619 2009 (GMT+1):

Wed Feb 25 15:47:55.619 2009 (GMT+1): ModLoad: 00000000`5aee0000 00000000`5aef2000   System.ComponentModel.DataAnnotations.dll

I have no idea what has caused this, but closing all Visual Studio instances and then starting it once with the /safemode switch and then closing it seems to have fixed the crash.

The new dashboard – NXE

The last few days I’ve been using the new Xbox 360 UI, and I like it. The live arcade games list loads instantly and you don’t have to endure the noise from the dvd-drive anymore, for games you’ve installed to the hd that is. Unfortunately I only have the 20Gb hd so I can only have one game installed, and upgrading to the 120Gb just feels too expensive. While reading Major Nelson’s blog I found out about a small improvement that’s neat, you can now delete all games from your profile with zero gamerscore. Nice!

Will be intersting to see what they’ll do with the avatars in games. 

It’s not perfect though. When logging in you have to enter the password twice unless you sign in via the guide and just after boot it’s a bit sluggish.

Google Custom Search

Found a new Google tool today called Custom Search Engine that might be useful.

I’ve for some time now wanted to always exclude certain domains from my search results since they are of no use to me. For example, I will never pay for experts-exchange.com so results from that domain are just a nuisanse to me. So now I’ve created my own search that always exclude unwanted domains. It only excludes experts-exchange.com right now, but I’ll probably add more as I find them.

(First?) security issue for Firefox 3.0

Secunia recently published an advisory about a bug in Firefox 3.0 and earlier versions that allows an attacker to execute arbitrary code if a user visits a malicious webpage. Not a good start. Should everyone use IE now until this is fixed? 🙂

Maybe the proposed Vista Protected mode feature needs to be more prioritized after all. I don’t know if it would have lessened the impact of this issue though.

Firefox 3.0

Download Day

The initial impression is good. Feels a lot faster than previous versions, and memory usage isn’t steadily increasing. And the improved address bar is really nice, I only have to write a few characters of the name of a page I want to visit and it usually appears among the top three or four suggestions.

Also, the two add-ons I use are compatible which is great.

Problem viewing .chm files

For some time now I have been unable to read downloaded .chm files. Instead of the help contents I got an error page.

The address is not valid

Searching for this on google turned up a KB article that says this is because of a security measure introduced in security update 896358.

To view a downloaded .chm file do the following.

  1. Right-click the CHM file, and then click Properties.
  2. Click Unblock.
  3. Double-click the .chm file to open the file.

It’s back

It’s back, originally uploaded by appel.

Got my Xbox 360 back from repair today, took 10 days. I tried playing a few XBLA games using different accounts and had no problem so it seems they fixed instead of replacing it.

Haven’t noticed any reduction in noise level which is a little disappointing, but I guess I should be happy since it works and the noise isn’t worse.