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
- @psweetman Could you please give some details of your tablet pc discussion, perhaps via email? Would be much appreciated... 4 days ago
- RT @bbcorkney I posted 5 photos on Facebook in the album "Dolphin at Scapa" http://bit.ly/1Y0uIP 5 days ago
- AWTW CIA and the NHS: Common features of “high risk, high reliability” organisations http://bit.ly/2r65NZ 5 days ago
- @SRendall Well, I guess we're both hoping we won't be living in that house by 2012! 5 days ago
- @roundtrip ...If I'd been there I'd have followed up my question with "what happens when the banter and socialising *reduces* trust?" 5 days ago

No comments yet
Comments feed for this article