PyModule/.dll/thread error

Alex Martelli alex at magenta.com
Fri Aug 11 10:22:19 EDT 2000


"Mitja Semolic" <mitjase at hotmail.com> wrote in message
news:PRSk5.231$UZ2.7747 at news.siol.net...
> The module is using the python15_d.dll and the interpreter is using
> python15.dll. How do i fix this, by renaming the python15_d.dll in
> python.dll and place it in system directory?

That would probably be no good, since the .exe will also depend on
the same MSVCRT?.DLL as the underlying Python DLL, etc, etc.

No, you just can't safely mix, under Windows, modules using the
normal C runtime library (MSVCRT.DLL) and ones using another
variant (the debug-runtime MSVCRTD.DLL, in this case).  You should
rebuild the module so it uses MSVCRT.DLL, too.  Project/Settings/
C/C++/Code Generation/Use Runtime Library: Multithreaded DLL.


Alex







More information about the Python-list mailing list