[Bug 40540] ReadFile overlapped not using ReadIntervalTimeout

wine-bugs at winehq.org wine-bugs at winehq.org
Fri May 13 14:14:02 CDT 2016


https://bugs.winehq.org/show_bug.cgi?id=40540

--- Comment #5 from henry at littau.org ---
I have attached two CPP files.  Compile both with VS 2008 as console apps.

I have USB-RS232 adapter to null modem cable to 2nd USB-RS232 adapter plugged
in and configured as COM31 and COM32.  

Run 40540FakeDevice.  It waits for any input, then sends some data back.

Run 40540Demo.  You should see five successful transactions between the two
programs using overlapped io.  The hit key is there to give me time to attach a
remote debugger.

Recompile 40540Demo with USE_WAITFOREVENT defined.

Run 40540Demo.  It fails first time through the loop, reports, then fails
elsewhere second time through the loop, reports, exits.

Bug 40540 is the first failure.  I have not investigated the second, likely a
clean up issue from the first.

I tried to reproduce the issue with one app, that's why the USE_COM1 define is
in there.  For some reason having the second com port in use in the single app
does not reproduce the issue.  I didn't bother with threads to investigate that
further -- too easy to use another app :-)

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list