Article View: borland.public.cppbuilder.nativeapi
Article #16481Re: WriteFile problems (help me!)
From: Ed Mulroy [TeamB]
Date: Wed, 14 May 2003 15:30
Date: Wed, 14 May 2003 15:30
23 lines
1727 bytes
1727 bytes
Check the device at the other end of the serial cable. It has probably dropped a signal, possible one of CTS, DCD or DTR. If you changed to an asynchronous write then it would return after the call and you would have an opportunity to insert code to help determine the source of the problem. . Ed > MWP wrote in message > news:3ec25f43$1@newsgroups.borland.com... > > Im am doing the following simple line that is running about 40 > times a second: WriteFile(ComHandle, Block, Length, > &BytesWritten, NULL); > > ComHandle is pointing to a COM port opened at 19200. > Length is never more than 20 (verified). > > It will work for a random amount of time then, WriteFile gets > called but doesnt return... ever. > > Anyone know what the problem could be?
Technical Details
Message-ID:
<3ec26129$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3ec25f43$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,9ac30f5163521f9f X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-05-14 08:37:30 PST From: "Ed Mulroy [TeamB]" <ed@mulroyREMOVETHESECHARS.org> Newsgroups: borland.public.cppbuilder.nativeapi References: <3ec25f43$1@newsgroups.borland.com> Subject: Re: WriteFile problems (help me!) Date: Wed, 14 May 2003 11:30:25 -0400 Lines: 25 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 24.74.175.102 Message-ID: <3ec26129$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1052926249 24.74.175.102 (14 May 2003 08:30:49 -0700) X-Authenticated-User: edmulroy Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail