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
Printable View
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
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
Thanks for your info.