arvindm95 / unladen-swallow

Automatically exported from code.google.com/p/unladen-swallow
Other
0 stars 0 forks source link

Runtime error on Win32: DLL load failed #95

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
On Win32, embedded python was unable to load extension module written in C,
showing runtime error with message "DLL load failed: A dynamic link library
(DLL) initialization routine failed". This issue was also arise on CPython
2.6.1.

http://bugs.python.org/issue4566

Original issue reported on code.google.com by jaimy.azle on 12 Dec 2009 at 2:41

GoogleCodeExporter commented 8 years ago
Looks like there's an easy fix we can pick up from upstream. I'll merge it.

Original comment by collinw on 14 Dec 2009 at 6:35

GoogleCodeExporter commented 8 years ago
Should be fixed in r934. Please reopen this bug if that fix doesn't work for 
you.

Original comment by collinw on 14 Dec 2009 at 9:04

GoogleCodeExporter commented 8 years ago
confirmed, fixed. I use the test code here:

http://bugs.python.org/file12249/testpy.c

step to compile:

..\>cl /MT /c /Id:\personal\unladen-swallow\include 
/Id:\personal\unladen-swallow\pc
testpy.c

..\>link /LIBPATH:d:\personal\unladen-swallow\pcbuild testpy.obj

..\>testpy
Python 2.6.1 (r261:67515, Dec 15 2009, 08:32:11) [MSC v.1500 32 bit (Intel)] on 
win32
[Unladen Swallow 2009Q4]
Type "help", "copyright", "credits" or "license" for more information.
>>>

Original comment by jaimy.azle on 15 Dec 2009 at 2:03