Wondering why the WWMX GPS Track Download crashes on vista ?
Thursday, May 8th, 2008I use a GPS when I go sailing to record and analyse my performance. It’s a cheap as chips Garmin eTrex, and to download the tracks I use the GPS Track Download application created by Microsoft research for the World Wide Media exchange project.
I recently reinstalled Vista on my new machine and trying to down load the GPS track-log, the application kept crashing. To solve this problem I turned to process monitor. Process monitor replaced file monitor and quickly showed that the app tries to download to a default, hard coded directory c:\My Documents that didn’t exist then boom, no error was shown and the application crashed. A classic Severity 1 issue.
To stop the application crashing you simply need to create this directory, but it also shows that when writing an application you should never hard-code file paths. The application should have prompted if it’s default directory was not found and ask for the user to specify one.

