🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Strange 'WriteFile' Freezing problem

#3328
From: Ramy
Date: Sun, 23 Jul 2006 11:24
28 lines
1607 bytes

Hi, the timeouts that I use are the following - 

read_timeout.ReadIntervalTimeout         = 0;  
read_timeout.ReadTotalTimeoutMultiplier  = 150; 
read_timeout.ReadTotalTimeoutConstant    = 150; 
read_timeout.WriteTotalTimeoutMultiplier = 0;  
read_timeout.WriteTotalTimeoutConstant   = 150; 

I asked the WriteFile command to send 8 bytes, and the size of
my TxBuff[] is 250 bytes.

Any Idea ? 

"using Overlapped I/O with the port"

What does it do? do you have an example? is it complicate?

Thanks!



>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: <44c35c6a$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <44bfb418$1@newsgroups.borland.com> <44bfd6a1$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: "Ramy" <Ramy@NoMail.com>
Sender: "Ramy" <Ramy@NoMail.com>
Reply-To: "Ramy" <Ramy@NoMail.com>
Subject: Re: Strange 'WriteFile' Freezing problem
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 62.0.27.159     
References: <44bfb418$1@newsgroups.borland.com> <44bfd6a1$1@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.66
Message-ID: <44c35c6a$1@newsgroups.borland.com>
Date: 23 Jul 2006 04:24:26 -0700
X-Trace: newsgroups.borland.com 1153653866 207.105.83.66 (23 Jul 2006 04:24:26 -0700)
Lines: 29
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail