🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Com port error

#3477
From: JD
Date: Sat, 17 Jun 2006 18:50
21 lines
1555 bytes
"Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> wrote:
>
>> After some searching, it's been decided that the thread
>> should not use WaitCommEvent
>
> Why not?

I'm not sure exactly. I think it had something to do with
fear that the thread would get deadlocked if no data ever
came across. I haven't researched it yet but ISTM that
unless one can set a timeout for WaitCommEvent, the thread
won't ever terminate.

> Have you read the MSDN articles on working with communication
> ports yet?  I strongly suggest that you do so.

I've looked at both links yes (thank you), but I still can't
get a simple test to work!

~ JD
Technical Details
Message-ID: <44944f06@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!news.glorb.com!solnet.ch!solnet.ch!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4491a4c2$1@newsgroups.borland.com> <4491a6b2$1@newsgroups.borland.com> <4492cbf9$1@newsgroups.borland.com> <4492e2ca$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,f1782b94b4ced041
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "JD" <nospam@nospam.com>
Sender: "JD" <nospam@nospam.com>
Reply-To: "JD" <nospam@nospam.com>
Subject: Re: Com port error
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 205.188.116.136     
X-Forwarded-For: 172.128.228.215
References: <4491a4c2$1@newsgroups.borland.com> <4491a6b2$1@newsgroups.borland.com> <4492cbf9$1@newsgroups.borland.com> <4492e2ca$1@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.66
Message-ID: <44944f06@newsgroups.borland.com>
Date: 17 Jun 2006 11:50:46 -0700
X-Trace: newsgroups.borland.com 1150570246 207.105.83.66 (17 Jun 2006 11:50:46 -0700)
Lines: 22
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!news.glorb.com!solnet.ch!solnet.ch!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail