L
Lars Black
Hi,
I'm about to start a new CF.NET application where I like to use threads.
Since I've not used thread in CF.NET before, I'd like some input to see if
it is possible to do what I plan to do.
The application will be using SQLCE and will receive data updates via a web
service. Id like the updating to run in a thread so the user should not
worry about it.
Thread-pseudo code:
* Connect to web service via GPRS. This uses a WebHTTPRquest and will
(normally ;-) initiate the dial-up automatically
* Process the data recivede from the web service and update SQLCE
accordingly
* If updates were received, somehow notify the main thread that it needs to
refresh it's GUI. I'm not sure how to do this, so any ideas would be
appreciated.
Would that cause me any troubles? Especially using SQLCE from two thread at
the same time..
Cheers,
Lars
I'm about to start a new CF.NET application where I like to use threads.
Since I've not used thread in CF.NET before, I'd like some input to see if
it is possible to do what I plan to do.
The application will be using SQLCE and will receive data updates via a web
service. Id like the updating to run in a thread so the user should not
worry about it.
Thread-pseudo code:
* Connect to web service via GPRS. This uses a WebHTTPRquest and will
(normally ;-) initiate the dial-up automatically
* Process the data recivede from the web service and update SQLCE
accordingly
* If updates were received, somehow notify the main thread that it needs to
refresh it's GUI. I'm not sure how to do this, so any ideas would be
appreciated.
Would that cause me any troubles? Especially using SQLCE from two thread at
the same time..
Cheers,
Lars