The same Python DLL loaded twice

Hi,
I'm experiencing strange issue with the very same python32.dll being loaded twice on Windows.
I have an application which embeds Python. Launching my app loads python32.dll for the first time and all seems working well. Next, under the embedded Python, I execute this one-liner "import tkinter"
This triggers loading of _tkinter.pyd, tk85.dll, tcl85.dll as well as python32.dll for the second time.
The duplicate python32.dll is loaded into different address space, maintains its own thread state, leading to crash from PyInit__tkinter, obviously.
The problem seems to be similar to this one http://stackoverflow.com/questions/2147729/dll-file-loaded-twice-with-dll-re...
Has anyone experience similar issues? Any ideas on possible reasons of duplicate loading of python32.dll?
Best regards,
Mateusz Loskot, http://mateusz.loskot.net
participants (1)
-
Mateusz Loskot