Click to See Complete Forum and Search --> : Stop running


April 24th, 1999, 12:49 AM
Hi guru,
I have a problem with my VC++ app. Sometimes my app will have dead loop
in a some subroutine where to wait for something happens. Can you please
tell me how to stop the loop from this app and let it continue to run
as usual. Thanks.
cepheid

Paul McKenzie
April 24th, 1999, 10:13 AM
No well written Windows program should have a while loop that just "waits" without yielding control to the other applications. This isn't DOS :-)


I'm not sure what you want, but here are a few suggestions:

- just take the loops out

- if you still want to loop, look about using threads

- same as above but create a loop by using a combination of PostMessage() and GetMessage() calls.

Regards,

Paul McKenzie

April 24th, 1999, 01:10 PM
Thanks for your info.