Learned something new today. Writing a windows service for delivering alerts, but this is the first time I’ve written something on Windows 64 bit (Windows 7 RC to be exact). When I started writing the service it was on 32-bit, so when I moved to x64 I just dumped the email account settings for my service into a .reg file and imported it on the new OS (I don’t have a complete installer for it yet). The settings were written into HKLM\Software\NHS, same as on my 32-bit OS. When I started the service, it crashed. On debugging it, I discovered that the registry settings were not being loaded. My immediate thought was “permissions”, but no the permissions were fine. Eventually it dawned on me that perhaps 32-bit programs are pointed at a different part of the registry when they try to load HKLM with e.g. Registry.LocalMachine.OpenSubKey(“Software”, false). This is indeed the case, your 32-bit programs will all be directed to HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node. So now my 32-bit service starts correctly because it now looks in HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\NHS for its email settings.
AWTW FriendFeed linkblog
- David R: Tales from the encrypt: the secrets of data protection | Technology | guardian.co.uk November 3, 2009
- David R: The ugly, the bad, the very good and the great at the Health 2.0 Conference - onyeije's posterous November 3, 2009
- David R: E-Health Europe :: Cerner completes first Spanish roll-out November 3, 2009
- David R: E-Health Insider :: EPR: the drama November 3, 2009
- David R: Microsoft May Be Inflating SharePoint Stats - http://rss.slashdot.org/~r/slashdot/eqWf/~3/4SHzL8cNr7I/Microsoft-May-Be-Inflating-SharePoint-Stats October 20, 2009
- David R: E-Health Insider :: US releases $1.2 billion for EMRs September 4, 2009
- David R: Army Asks Its Personnel to Wikify Field Manuals - http://rss.slashdot.org/~r/slashdot/eqWf/~3/aS65RpslOsg/Army-Asks-Its-Personnel-to-Wikify-Field-Manuals August 25, 2009
- David R: Wikipedia To Require Editing Approval - http://rss.slashdot.org/~r/slashdot/eqWf/~3/PrqBf9Do-_c/Wikipedia-To-Require-Editing-Approval August 25, 2009
- David R: Google Brings SVG Support To IE - http://rss.slashdot.org/~r/slashdot/eqWf/~3/hR-JRZ9lWZY/Google-Brings-SVG-Support-To-IE August 23, 2009
- David R: Microsoft NHS Resource Centre - News analysis: Conservative plans for NHS IT August 21, 2009
@davidrendall on Twitter
- JDG Thanks http://bit.ly/bLoBo5 1 day ago
- JDG Tooth Academy is Go! http://bit.ly/aOtY0j 2 days ago
- JDG IE6 to be dropped... http://bit.ly/9Sr9w2 1 week ago
- JDG iphone crap apps.. the debate continues... http://bit.ly/96Kdd8 1 week ago
- JDG was it airbrushed pt2... kind of... http://bit.ly/dvLCdx 2 weeks ago

No comments yet
Comments feed for this article