[quoted text, click to view] > Are you doing any .invoke to the GUI?
I only use .BeginInvoke.
[quoted text, click to view] > We've never had any issues with remoting in terms of response time... could
> it be a code issue? How are you talking to multiple clients? Is this a
> singlecall or singleton project?
I'll try to explain shortly how my application (called X) works. It
consists of three projects: Xcommon (a class library), Xstation (the
client app) and Xserver (the server app). Xcommon contains the classes
XStationService and XServerService and also interfaces IStation and
IServer. The XStationService has one associated IStation instance and
the XServerService has an associated IServer instance.
Xstation contains the class MainForm, which is the startup class.
MainForm creates an object of the Client class that implements
IStation. The Client class in its turn creates an XStationService
instance that is the remoting object. All calls from the server are
propagated from the XStationService object to the Client object and to
the MainForm object, where I use .BeginInvoke to do the actual action.
Xserver contains the class Main, which is its startup class. Main
creates a Server object (that implements IServer). The Server creates
an XServerService object for remoting and also starts a thread, the
XEngine. When a client (XStationService) registers to the Xserver it is
wrapped in another object and added to the stations Collection of the
Xserver. When calls are made to all stations this Collection is
iterated over and each station is called.
The delay appears when the XEngine thread calls the
Xserver.RemoveDeadStations method, that iterates over the stations
Collection and calls XStationService.CheckIfAlive for each
station/client. The call for CheckIfAlive is encapsuled in a try-catch
block, and if an exception is thrown it is assumed that the
station/client no longer is contactable (the network connection may be
down or something).
Well, that wasn't short, but I hope it is understandable, and I'm still
very grateful for any response...