+ Reply to Thread
Results 1 to 3 of 3

Thread: SendMessage hangs occasionaly.

  1. #1

    SendMessage hangs occasionaly.

    I am working on WIN32 window application.

    My SendMessage hangs occasionally. It happens if the receiving window does not exists.
    Can I avoid this hang?

    How can I implement this?

    Please help.

  2. #2
    One option is to use "SendMessageTimeout" API.

    It accepts timeout as an argument which you can use.

    For more information, you can look at : http://msdn.microsoft.com/en-us/libr...=vs.85%29.aspx

  3. #3
    Thanks, indeed it helped.

+ Reply to Thread

Tags for this Thread

Bookmarks

Posting Permissions

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