[python-win32] Still looking for a method to get CPUID info ...
Tim Roberts
timr at probo.com
Wed Jan 6 19:32:06 CET 2010
Gertjan Klein wrote:
> Out of pure curiousity (I used to write a lot of assembler, but those
> days are long gone) I tried your code, and it works as advertised -- on
> Python 2.6. It fails on Python 2.5 with "WindowsError: exception code
> 0x20800", but oddly I've also seen error code 0x1020800. I couldn't find
> much about either of these errors on the Internet. Any idea what could
> be wrong? I know Python 2.5 and 2.6 use different C runtimes, but the
> created DLL is completely independent.
>
Very interesting. I tried this on Python 2.5.2 on my Windows 7 64
system (using 32-bit Python). The C version works fine, but the
assembler version gets a "DLL initialization error". I fixed that by
adding "mov eax, 1" to the "start" routine. See if that helps your issue.
--
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.
More information about the python-win32
mailing list