🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Error Handling writing files across network

#8753
From: Eelke
Date: Thu, 23 Sep 2004 06:41
15 lines
1719 bytes
Marvin Weingarden wrote:
> Is there a way to manage errors when writing across a network (one XP
> machine to another)?  If I turn off the 2nd machine while the write
> operation is ongoing, the application seems to lock up for a number of
> seconds - before coming responsive again.
> 
> I do not want to throw an exception (cannot use TStream).  I have tried
> fwrite and placed the breakpoint after the fwrite would fail and it takes
> 30-60 seconds from the time the 2nd computer is turned off until the
> breakpoint is displayed.
This probably takes so long because the OS is still trying to reach the 
other system. Only after a certain time-out it will let your last write 
fail. This is done so temporary network failures do not cause problems.

Eelke
Technical Details
Message-ID: <4152701c$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.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
References: <4151c53d$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,213d89a21f38d0ef
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Thu, 23 Sep 2004 08:41:40 +0200
From: Eelke <e.klein@mplussoftware.nl>
User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Error Handling writing files across network
References: <4151c53d$1@newsgroups.borland.com>
In-Reply-To: <4151c53d$1@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 81.58.1.162
Message-ID: <4152701c$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1095921692 81.58.1.162 (22 Sep 2004 23:41:32 -0700)
Lines: 15
Path: arc1-ca.pugleaf.net!g2news1.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