This is a peculiar problem I see while running my application, which deals
with 'login' and this happens ONLY in Microsoft Windows Vista(32-bit). My
application internally uses the OpenSSL to communicate. The issue here is
that the application hangs in a method Rand_poll() of openssl. When I digged
in the code we found that the culprit was the
CreateToolhelp32Snapshot(TH32CS_SNAPALL,0) call. It went through fine when
I changed it into snap(TH32CS_SNAPPROCESS,0), which means the application
hangs when I pass the flag TH32CS_SNAPALL.
I am not sure about the real issue here as I don't have expertise in neither
Vista nor OpenSSL, as this happens only in Windows Vista (not in other
releases of windows). I'd appreciate if any of you can help on this.