Michael Culley <mc*****@NOSPAMoptushome.com.au> wrote:
I don't know if that's really true. If you want your app to be doing
only one thing but allow the user to cancel it or just to allow the
GUI to update then doevents is quite suitable.
I'm afraid I disagree - you need to work out where to call DoEvents,
make sure you don't have reentrancy problems etc. I believe it's far
cleaner to start a new thread - it will also make your UI itself
perform better for repaint requests etc, as it won't have to wait for
your next call to DoEvents before repainting.
--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too