Lukas Thanei
2008-07-08 06:58:26 UTC
Hi everyone,
I've got a problem with remoting in connection with events. Im using
Remotingservices.Marshal() and Activator.GetObject in connection with a
tcp channel.
Server:
RemotingServices.Marshal(remoteobject, "remoteobject")
Client:
remoteobject = Activator.GetObject(GetType(RemoteType), uri)
So far everything works well, the remote object is available, I can call
remote methods and get exceptions and events as expected.
Now, when a client calls a method A, which raises an event (which itself
has so be sent back to the clients), the server program gets stuck on
the last line of that method A (End Function). There is no exception thrown.
I figured out that I can avoid that problem just by caching all events
till the remote call has been completed and raise them afterwards. This
is not really the solution I want to have, because method calls can take
some seconds and event should be delivered in time. Any suggestions on
how to fix this issue?
Thanks!
I've got a problem with remoting in connection with events. Im using
Remotingservices.Marshal() and Activator.GetObject in connection with a
tcp channel.
Server:
RemotingServices.Marshal(remoteobject, "remoteobject")
Client:
remoteobject = Activator.GetObject(GetType(RemoteType), uri)
So far everything works well, the remote object is available, I can call
remote methods and get exceptions and events as expected.
Now, when a client calls a method A, which raises an event (which itself
has so be sent back to the clients), the server program gets stuck on
the last line of that method A (End Function). There is no exception thrown.
I figured out that I can avoid that problem just by caching all events
till the remote call has been completed and raise them afterwards. This
is not really the solution I want to have, because method calls can take
some seconds and event should be delivered in time. Any suggestions on
how to fix this issue?
Thanks!