CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Stop running

  1. #1
    Guest

    Stop running

    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



  2. #2
    Join Date
    Apr 1999
    Posts
    27,449

    Re: Stop running

    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


  3. #3
    Guest

    Re: Stop running

    Thanks for your info.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured