bitcoin/bitcoin — pull request #636 by gavinandresen (2011-11-15 19:55:40+00:00)
Title: Fix crash-on-wallet-upgrade bug on OSX

Testing Bitcoin-Qt on my mac, I got a crash when running 0.5rc4 on a previously-encrypted wallet, after clicking the "you must restart" dialog box OK button.

This catches the exception that is causing the problem (DbEnv::close(0) is upset about an invalid parameter), but I'm still concerned that I haven't found the root cause-- I still don't know WHY the exception is thrown.