Article View: borland.public.cppbuilder.nativeapi
Article #10610Re: rs232 under XP
From: Martin
Date: Wed, 31 Mar 2004 09:37
Date: Wed, 31 Mar 2004 09:37
17 lines
1714 bytes
1714 bytes
Hello Benjamin, in my win98 program I was using WaitCommEvent in a thread for receiving. Sending was done directly with WriteFile from the main thread. This worked well (without overlapped) Under XP not only the receiving thread is waiting at WaitCommEvent but all threads that reach "something that has to do with the COM-handle" wait, if the receiving thread waits at WaitCommEvent.So it is no longer possible to send and wait for receive simultaneously even if each is done in its own thread. I write this because I am not sure if it was clear where my program hangs. You adviced me to use one thread for input and one for output. But as much as I see it, this also will work under XP only when using overlapped. Did I get you right there? Martin
Technical Details
Message-ID:
<406a964f$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<40693a3f@newsgroups.borland.com> <4069a26a@newsgroups.borland.com> <4069c1f9$1@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-31 02:09:41 PST From: "Martin" <anonymous@anonym.net> Newsgroups: borland.public.cppbuilder.nativeapi References: <40693a3f@newsgroups.borland.com> <4069a26a@newsgroups.borland.com> <4069c1f9$1@newsgroups.borland.com> Subject: Re: rs232 under XP Date: Wed, 31 Mar 2004 11:37:41 +0200 Lines: 19 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.186 Message-ID: <406a964f$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1080727119 217.185.18.186 (31 Mar 2004 01:58:39 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail