Fixed std::bad_alloc() calls to fix VS2012 Release_(Vista) variant builds

git-svn-id: https://peerblock.googlecode.com/svn/trunk@645 d3e0e2f6-51e0-11de-b413-c5e99dc0a8e2