I need an advice because I'm "locked"...
I have a client-server application using .NetRemoting between the client process and the server one.
Server process raises events to the client calling a method.
Then, the client uses a BackGroundWorker to transmit values to User Interface.
Usualy, the server is already running when the client is launched.
- When BackGroundWorker.DoWork() is called, Thread.CurrentThread.IsBackground equals True
- In BackGroundWorker_RunWorkerCompleted event, Thread.CurrentThread.IsBackground equals False
But, if, during the client is loading (.exe is opening), it needs to open (with Process.Start()) the Server process (.exe) before it connects
then, in BackGroundWorker_RunWorkerCompleted, Thread.CurrentThread.IsBackground is still equal to True and UI can not be changed in this thread.
In that case, I need to open an other client (connecting to the same server) to have a good behavior.
What could be the difference between these two situations ?
Thanks.