Facing problem with the CreateToolhelp32Snapshot() call in Windows Vista

Facing problem with the CreateToolhelp32Snapshot() call in Windows Vista

Post by Skywing [M » Wed, 06 Jun 2007 00:41:49


Can you post a stack trace of the thread that is hung in
CreateToolhelp23Snapshot?

--
Ken Johnson (Skywing)
Windows SDK MVP
http://www.yqcomputer.com/
 
 
 

Facing problem with the CreateToolhelp32Snapshot() call in Windows Vista

Post by senthil123 » Wed, 06 Jun 2007 04:10:16

Hi,

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.

Thanks,
Pal.