Hello,
I'm writing a server client application and I'm having a terrible time
getting one section to work. This is my first time using .net remoting, so
please bear with me if I'm doing something incorrectly. To give a brief
layout of my program, the server side hosts a series of functions for running
tests, this server application will run on four separate boxes. My client
application has access to all four of the server applications, and sends jobs
to those server to complete. On my client form, there are text boxes,
representing status on the jobs from each of the four servers.
My problem is getting those text boxes to update from the form, I'm using a
remote object that the client creates. I have this object referenced in the
server and it has one function.. SendMessage(string message)... When the
client recieves that message, I need it to update the text box in my Form
class. I've tried several different ways, but I keep running into Cross
Threading errors, or my program completely locks up. I've tried using
Events, but those still didn't seem to work.
Does anyone have any advice? I just purchased a book that will hopefully
help (Advanced Remoting (using C#)), I'm looking forward to recieving it and
hopefully it's full of great advice. In the meantime, I have a job to do and
I'm stuck.
Thanks for any help!
Cory B.