H
Howard Swope
In my application, running on PocketPC, I have two TrackBar controls on a
form. Also in this application I have a socket which will send the value
from the trackBar1 to a server (running on my desktop pc) and receive a
message from the server indicating a value change. I use this to set the
value of trackBar2. When I do this the application locks up.
I have performed several tests that point to the fact that there is a
threading problem.
1. I have the value change of trackBar1 set the value of trackBar2
directly (no socket communication). There is no problem here, everything is
done on the same thread and the movement of trackBar1 is mirrored on
trackBar2
2. I have the value change of trackBar1 just call to the socket, but I do
nothing when I receive a message from the server indicating a value change.
Nothing locks up.
3. I use another application to send a value change to the server and
trackBar2 shows the changes fairly responsively.
There seems to be some type of threading error happening. Any thoughts about
how I might go about tracking down the problem and fixing it?
form. Also in this application I have a socket which will send the value
from the trackBar1 to a server (running on my desktop pc) and receive a
message from the server indicating a value change. I use this to set the
value of trackBar2. When I do this the application locks up.
I have performed several tests that point to the fact that there is a
threading problem.
1. I have the value change of trackBar1 set the value of trackBar2
directly (no socket communication). There is no problem here, everything is
done on the same thread and the movement of trackBar1 is mirrored on
trackBar2
2. I have the value change of trackBar1 just call to the socket, but I do
nothing when I receive a message from the server indicating a value change.
Nothing locks up.
3. I use another application to send a value change to the server and
trackBar2 shows the changes fairly responsively.
There seems to be some type of threading error happening. Any thoughts about
how I might go about tracking down the problem and fixing it?