Article View: borland.public.cppbuilder.nativeapi
Article #16382Re: WriteFile problems (help me!)
From: MWP
Date: Wed, 14 May 2003 15:56
Date: Wed, 14 May 2003 15:56
39 lines
2279 bytes
2279 bytes
The device at the other end is a LCD module which doesnt have any kind of software/hardware flow control. Well ive found the problem... its a Windows bug: http://www.alumni.caltech.edu/~dank/overlap.htm Looks like it effects Windows XP as well. What a pain. Not sure how im going to get around it yet. Any sugestions? "Ed Mulroy [TeamB]" <ed@mulroyREMOVETHESECHARS.org> wrote: >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:
<3ec26741$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.frii.net!newsfeed.frii.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3ec25f43$1@newsgroups.borland.com> <3ec26129$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 09:02:06 PST From: "MWP" <mwp@overclockers.com.au> Sender: "MWP" <mwp@overclockers.com.au> Reply-To: "MWP" <mwp@overclockers.com.au> Subject: Re: WriteFile problems (help me!) Newsgroups: borland.public.cppbuilder.nativeapi X-User-Info: 203.16.214.242 203.16.214.242 X-Forwarded-For: unknown, 150.101.76.247 References: <3ec25f43$1@newsgroups.borland.com> <3ec26129$1@newsgroups.borland.com> NNTP-Posting-Host: 207.105.83.65 Message-ID: <3ec26741$1@newsgroups.borland.com> Date: 14 May 2003 08:56:49 -0700 X-Trace: newsgroups.borland.com 1052927809 207.105.83.65 (14 May 2003 08:56:49 -0700) Lines: 40 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.frii.net!newsfeed.frii.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail