Article View: borland.public.cppbuilder.nativeapi
Article #3320Re: Strange 'WriteFile' Freezing problem
From: Remy Lebeau (TeamB)
Date: Thu, 20 Jul 2006 19:12
Date: Thu, 20 Jul 2006 19:12
17 lines
1446 bytes
1446 bytes
"Ramy" <Ramy@NoMail.com> wrote in message news:44bfb418$1@newsgroups.borland.com... > Please Help, I'm having a very strange problem, sometimes > my application is "Freezing" in the following command - > > WriteFile( hndl, TxBuff, MessageLen, &written, NULL ); > > (sending data through RS-232 port) How much data are you actually sending? What kind of device is on the other end of the port? What kind of timeouts are you using? Have you considered using Overlapped I/O with the port yet? Gambit
Technical Details
Message-ID:
<44bfd6a1$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<44bfb418$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,de20f5af4a62f92a X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <44bfb418$1@newsgroups.borland.com> Subject: Re: Strange 'WriteFile' Freezing problem Date: Thu, 20 Jul 2006 12:12:06 -0700 Lines: 19 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 68.69.17.41 Message-ID: <44bfd6a1$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1153423009 68.69.17.41 (20 Jul 2006 12:16:49 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail