On Mon, 01 Dec 2008 17:45:40 +0100
> Now, when trying to run the resulting exe I get this error:
> ImportError: MemoryLoadLibrary failed loading MyExtension.pyd
> I looked at the zip archive and both CustomDLL.dll and
> MyExtension.pyd are present at the root level, so they should be
> My questions are now: Why does loading fail? How can I debug into
> this further?
You could compile the MemoryLoadLibrary c code with DEBUG_OUTPUT flag
to see where it fails.
> Might this problem arise, because the pathes of the msvc dlls look
> in reality and py2exe fails to load them due to some windows
> side-by-side assembly or manifest issues? Anybody else has
> applications working with the msvc80.dlls?
Are you using bundle_files < 3? I do so and got the same problem
with pygobject. I think I start seeing a pattern in this malfunction. I
am not sure, but i think this occurs when you are loading a library
from memory which depends on other libraries which are also loaded from
memory. In the case of gobject, I worked around this problem by putting
any gobject dll (not the pyd's from pygobject itself) into exclude_dlls.