P
Peted
Hi i hope i explaine this correctly
I have a class with a method that reads and writes using blocking
sockets to a TCP device. Call it class IPdevice. I can use this
method to send commands and then wait for a response from this
ipdevice im connected to
i want to have a background worker thread on a form that once a minute
sends a command to retrieve the current time from this ip device then
update it into the form display.
Whats the best way to handle gui update from a worker thread ?
and
how can i call thie method in the IPdevice class from the worker
thread without casuing a conflict when the same method is called from
a button click on the form ?
thanks for any advice
Peted
I have a class with a method that reads and writes using blocking
sockets to a TCP device. Call it class IPdevice. I can use this
method to send commands and then wait for a response from this
ipdevice im connected to
i want to have a background worker thread on a form that once a minute
sends a command to retrieve the current time from this ip device then
update it into the form display.
Whats the best way to handle gui update from a worker thread ?
and
how can i call thie method in the IPdevice class from the worker
thread without casuing a conflict when the same method is called from
a button click on the form ?
thanks for any advice
Peted