Hi,

I have a question related to .NET remoting and delegates.

I have 2 processes, let's say process A and B. Process A calls a
method on a remote object, i.e. an object hosted by process B. The
method on the remote object is an event receiver that is bound to a
delegate declared in process A.

Process A invokes the event receiver method on the remote object in
the following manner.

myDelegate.DynamicInvoke(myEventReceiverArguments);

>From the process A point of view:
What is expected behaviour in case process B terminates unexpectedly
before the above statement is executed? And what is expected behaviour
in case process B terminates unexpectedly while the above statement is
being executed?

I noticed that process A got stuck in waiting for the DynamicInvoke
method to return. However I doubt this is normal behaviour, i.e. I
would expect an exception due to a timeout or due to the remote object
being unavailable or something like that.

I'm fairly new to .NET programming. I'm not sure the delegate
situation has something to do with the DynamicInvoke method not
returning, but I mention it anyway since that's the situation.

Regards,

Frederiek

Reply via email to