🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #4743

Re: GetOverlappedResult on virtual serial COM port

#4743
From: Remy Lebeau (TeamB)
Date: Mon, 28 Nov 2005 22:38
21 lines
1837 bytes
"Thom A." <thoma@gmx.at> wrote in message
news:438a3095$1@newsgroups.borland.com...

> Unfortunately, specifying FALSE does not always work
> with virtual ports: This returns error in some cases, in
> works in others...

If you use FALSE for GetOverlappedResult() then you should be using
WaitForSingleObject() or equivilent function to wait for the operation to
actually finish before then calling GetOverlappedResult() to get the final
result.  Using a waiting function will allow you to use timeouts and such.

> My goal is to achieve response times of less than 300 ms.
> FALSE is much faster, but keeps failing from time to time

Are you using any waiting function before calling GetOverlappedResult()?
When it does fail, what error(s) does it actually report?


Gambit
Technical Details
Message-ID: <438b86e8$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!news-out.newsfeeds.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <438a0398$1@newsgroups.borland.com> <438a2209$1@newsgroups.borland.com> <438a3095$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,14a3bc55bdb22e73
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <438a0398$1@newsgroups.borland.com> <438a2209$1@newsgroups.borland.com> <438a3095$1@newsgroups.borland.com>
Subject: Re: GetOverlappedResult on virtual serial COM port
Date: Mon, 28 Nov 2005 14:38:40 -0800
Lines: 23
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <438b86e8$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1133217512 68.69.17.41 (28 Nov 2005 14:38:32 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!news-out.newsfeeds.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail