Building OpenSSL with Visual Studio 2010 for x64 / Win64 causes error

Today I was trying to build the latest OpenSSL 1.0.1c with Visual Studio 2010. Following instructions form the INSTALL.W32, I was able to successfully build the 32-bit version. Trying the same with 64-bit (x64) version, again following the official instructions from INSTALL.W64. To build for Win64/x64: > perl Configure VC-WIN64A > ms\do_win64a > nmake -f …

Static code analysis for C++ for free and for Pro

Up and until Visual Studio 2010 Microsoft decided that Code Analysis tool was available only for Visual Studio Premium and Ultimate editions. I have Visual Studio 2010 Pro w/MSDN subscriptions (actually 2 of them), but can not use Code Analysis tool. This however will change with upcoming Visual Studio 11. See the SDL blog: Code …

CreateProcessAsUser fails on Windows XP with System error 233

Today I fixed one bug that was very hard to reproduce. Many hours were spent to figure out what combination caused it: It happens only on Windows XP (not on Vista, Server 2003, 2008, Win 7); It does not happens on all Windows XP, because it is Race condition; I was unable to reproduce it …