On Tue, Nov 2, 2010 at 12:51 PM, AdrianB <adrian.ba...@plato-ag.com> wrote:

import myembedded                                 # myserver.dll
> embedded_session = myembedded.Session()           # myapi.dll::Session
>
> #!! The ISSUE !!
> embedded_session.myEmbeddedImpl()
> # should call myapi.dll::Session::myEmbeddedImpl()
>
> # -- what happens? --
> instead of executing
>   myapi.dll::Session::myEmbeddedImpl()
> it executes
>   myapi.pyd::Session::myEmbeddedImpl()!!!
>
> Why? And how can I avoid this?
>

Try renaming myapi.dll to myotherapi.dll, or some renaming like that?

Since myapi.pyd *is* a .dll file, my guess is that the OS loader thinks:
since we've already loaded myapi.pyd, there's no need to load a file called
myapi.dll.
_______________________________________________
Cplusplus-sig mailing list
Cplusplus-sig@python.org
http://mail.python.org/mailman/listinfo/cplusplus-sig

Reply via email to