Solved

WaitCommEvent timeout

Posted on 1997-08-18
1
1,613 Views
Last Modified: 2013-11-19
When I use the WaitCommEvent() API on non-overlapped serial operations, I get an infinite wait state whenever the event I am concerned with doesn't occur.

I am thinking if I could implement a timeout using WaitCommEvent() so that even if the event I am waiting for doesn't occur, my program will not hang and report a timeout instead.

How do I do this?  
0
Comment
Question by:booker74
1 Comment
 
LVL 4

Accepted Solution

by:
davmarc earned 70 total points
ID: 1304163
I cannot find any direct solution.
Maybe SetCommMask() can help for a workaround because it makes WaitCommEvent() return immediately, so you install a timer that calls it after some time.
Reference: KB article Q105302.

Davide Marcato.
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
iSeries DB2 Query 2 84
substring method in java 1 79
matchUp  challenge 6 48
Fibonacci challenge 11 84
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now