You need to override the InitializeLifetimeServices() method in your client
object. You can return NULL if you wish the object to live indefinitely.
Of course, this doesn't resolve the issue of the client being stopped and
your server having a reference to a now-inaccessible object. What you need
to do is make sure that when you invoke the proxy you are catching any
exceptions that may arise due to the disconnect. If the client is
disconnected, the server should drop the proxy it's holding. There is no
built-in call to detect is the proxy is still connected to a client object
(plus, even if there were, there's no guarantee the client wouldn't die
between the time of this call and the time you invoke the actual callback
method).
Ken
> Hi All
> i had a little bit tricky scenario
[quoted text clipped - 15 lines]
> kashif
> Programmer
kashif - 29 Sep 2004 06:32 GMT
Thanks Ken
i got resolved my issue by returning NULL by overridinG
InitializeLifetimeService() method as dictated by u
Thanks again
Regards
> You need to override the InitializeLifetimeServices() method in your client
> object. You can return NULL if you wish the object to live indefinitely.
[quoted text clipped - 32 lines]
> > kashif
> > Programmer