amd x2 processor with 4 GB of memory running on vista ultimate x64
the below code I have found is far more accurate on my system. it uses the GetNativeSystemInfo found in the kernel32.dll and returns 2 for the dwNumberOfProcessors everytime. to be honest based on the code below I have never ran GetSystemInfo on my computer because GetNativeSystemInfo has been successfull every time I have ran this code.
Aha. GetSystemInfo is documented to return incorrect information under WOW64, which you get with a 32-bit app on a 64-bit OS.
I bet that's the problem with the deadlock check stack tracing too --- WOW64 is messing up the stack tracer. I'll see what I can do.
Thanks.