Re: How do I wait until myVar == true
- From: "Gabriel Magaņa" <no-spam@xxxxxxxxxxx>
- Date: Fri, 20 Jan 2006 08:30:18 -0800
Jeez people, I gave the guy a warning about using DoEvents()... It's
nothing more than a quickie, a properly-written application should be
multithreaded/etc... And absolutely polling is a thing of the past.
Sometimes, though, it's not worth the effort. If what you want to do is
simple and the user won't care about some unresponsiveness, then I stand by
my statement, spend 45 seconds writing a polling loop statement rather than
whatever long it takes to do a multi-threaded "proper" app.
I was just giving the guy some choices.
Christoph - I specifically warned against that...
Willy - I never said to use DoEvents() in an alternate thread.
Jon - Your point is well-taken and I agree that proper design is always
better, but sometimes you are in search of a quick solution, for example if
you are quickly writing a data import routine that no end user will ever
see. User inreface responsiveness and saving every clock cycle possible is
not a huge priority. Delivery time might be the big priority (and usually
is).
.
- Follow-Ups:
- Re: How do I wait until myVar == true
- From: Jon Skeet [C# MVP]
- Re: How do I wait until myVar == true
- References:
- How do I wait until myVar == true
- From: Coder
- Re: How do I wait until myVar == true
- From: Coder
- Re: How do I wait until myVar == true
- From: Gabriel Magaņa
- Re: How do I wait until myVar == true
- From: Gabriel Magaņa
- How do I wait until myVar == true
- Prev by Date: Re: foreach or List.ForEach
- Next by Date: Re: Casting using "as" question
- Previous by thread: Re: How do I wait until myVar == true
- Next by thread: Re: How do I wait until myVar == true
- Index(es):
Relevant Pages
|