Hi all,

   I'm having some trouble trying to get callbacks through a DCOM interface.

When executing as a local COM everything works ok.

E.g.

import comtypes.client
from comtypes.gen import ExampleLib

class MyImpl(comtypes.COMObject):
    _com_interfaces_ = [ExampleLib.ISomeInterface]

    def ISomeInterface_some_event(self, ...):
        # whatever

obj = comtypes.client.CreateObject("Example.SomeObject")
my_impl = MyImpl()
obj.some_method(param1, param2)
obj.another_method(param1,...,
my_impl.QueryInterface(ExampleLib.ISomeInterface))


When run on the local machine both methods ("some_method" and
"another_method") work OK. Besides, "ISomeInterface_some_event" is
called when needed by "another_method" implementation.

However I need to do this remotely through DCOM. I can successfuly
reach the remote server by specifying the 'machine' argument on the
CreateObject call. I.e.:

  > obj = comtypes.client.CreateObject("Example.SomeObject",
machine="10.11.12.13")

Both functions work OK and are executed on the remote server, but I'm
not getting any callbacks when executing "another_method" (i.e
"ISomeInterface_some_event" is never executed). I'm not getting any
errors either.

Should I define the interface differently so I can get the callbacks
from the remote server?

Thanks in advance.


Sebastián.

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
comtypes-users mailing list
comtypes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/comtypes-users

Reply via email to