[C++-sig] boost::python executes wrong implementation

Nat Linden nat at lindenlab.com
Tue Nov 2 18:04:08 CET 2010


On Tue, Nov 2, 2010 at 12:51 PM, AdrianB <Adrian.Baetu at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20101102/01268ba0/attachment.html>


More information about the Cplusplus-sig mailing list