A
Adam Barker
Hi guys
Not sure if my approach to threading in my app is causing more problems than
it should.
Let's say I have a form with four buttons on it. Each one goes away and does
something extensive (data retrieval from the web) and displays a result on
the form.
Whats the best way to code this, bearing in mind that if you click another
button while the first one is processing, it needs to abort the first and
start the second.
Should I use one thread object? Or continually create new threads for each
click?
Thanks in advance
Adam
Not sure if my approach to threading in my app is causing more problems than
it should.
Let's say I have a form with four buttons on it. Each one goes away and does
something extensive (data retrieval from the web) and displays a result on
the form.
Whats the best way to code this, bearing in mind that if you click another
button while the first one is processing, it needs to abort the first and
start the second.
Should I use one thread object? Or continually create new threads for each
click?
Thanks in advance
Adam