have remoting with events working on a single machine, but...
From: JohnK (JohnK_at_discussions.microsoft.com)
Date: 09/23/04
- Next message: Ken Kolda: "Re: Preventing a RCW from being remoted"
- Previous message: Shwe Ko: "ChatCoordinator.dll"
- Next in thread: JohnK: "RE: have remoting with events working on a single machine, but..."
- Reply: JohnK: "RE: have remoting with events working on a single machine, but..."
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 23 Sep 2004 16:07:01 -0700
have remoting with events working on a single machine, but... when I put the
server, client, and remote object on a 2nd machine.... things do not work
completely.. So basically I have the same 3 directories (Client, Server,
RemoteObject) on two machines. I run the server on machine1, the client on
machine2... Now client indeed has access to the remote object... and the
client does call a function on that remote object... as the console for the
server writes out a msg when it gets a request...
public void BroadCastMessage(string msg)
{
IAsyncResult ar;
Console.WriteLine("Raising EventHandler1");
System.Delegate[] invkList = EventHandler1.GetInvocationList();
IEnumerator ie = invkList.GetEnumerator();
while(ie.MoveNext())
{
RemotingObject.EventHandlerDelegate handler =
(RemotingObject.EventHandlerDelegate)ie.Current;
try
{
ar = handler.BeginInvoke(msg,null,null);
}
upon calling BeginInvoke, it sits for a second or three... but nothing on
the client occurs...
Now if I ran the client & server on the same machine, things work....
any clues please....
- Next message: Ken Kolda: "Re: Preventing a RCW from being remoted"
- Previous message: Shwe Ko: "ChatCoordinator.dll"
- Next in thread: JohnK: "RE: have remoting with events working on a single machine, but..."
- Reply: JohnK: "RE: have remoting with events working on a single machine, but..."
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|