🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: rs232 under XP

#10600
From: Martin
Date: Tue, 30 Mar 2004 16:37
25 lines
1850 bytes
Hello again,

I have been looking at some of the tools mentioned and also did some
debugging in my program.

I can create a handle for the COMport with CreateFile but if I use the
handle in WriteFile or SetCommMask the program hangs up.
This happens only, when in the Thread WaitCommEvent is used. I found out,
that the whole program concerning the handle for the comport hangs there. If
something should be sent (but does not) and then a character is received,
both is done together and then everything hangs again at WaitCommEvent until
the next character is received


In the tools I saw, that they are using overlapped file IO and I don't. Is
that necessary under XP?

Ok, I could install one of the tools, but I am looking for
1. a fast way to get my program running again under XP
2. information to help me understand what is needed because later I want to
go on programmig my program.

Thanks again for help

Martin
Technical Details
Message-ID: <4069a26a@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!proxad.net!newsfeed.tpinternet.pl!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <40693a3f@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,8913094e963c267d
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2004-03-30 08:40:38 PST
From: "Martin" <anonymous@anonym.net>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <40693a3f@newsgroups.borland.com>
Subject: Re: rs232 under XP
Date: Tue, 30 Mar 2004 18:37:36 +0200
Lines: 28
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 217.185.18.254
Message-ID: <4069a26a@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1080664682 217.185.18.254 (30 Mar 2004 08:38:02 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!proxad.net!newsfeed.tpinternet.pl!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail