Re: What is the best way to do this...

Tech-Archive recommends: Speed Up your PC by fixing your registry



Hello PiotrKolodziej,

This is reasonable solution, because main thread is not that place where task shoul be run

In you main window you can show the progress bar informing your user how long is remained to download

P> Hi
P> 1. app start
P> 2. user clicks Login Button
P> 3. Application connects to the serwer ( check login and download dir
P> list -
P> 1mb )
P> Problem is when application is executing method responsible for
P> dooing 3.
P> It takes time and i dont want my app to be "lagged".
P> I tought that i can create thread for this task. When thread will
P> finish the
P> only thing that remains is to fill treewiev in main thread ( so i
P> need to
P> invoke one method ).
P> is this good solution?
---
WBR,
Michael Nemtsev :: blog: http://spaces.live.com/laflour

"At times one remains faithful to a cause only because its opponents do not cease to be insipid." (c) Friedrich Nietzsche


.


Quantcast