🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Exception 'problem'

#9778
From: Sam S. Firouz
Date: Tue, 15 Jun 2004 17:37
27 lines
1601 bytes
How are you openning, writing, closing file. An example code would help.

Sam


Colin B Maharaj <noreply@myhost.com> wrote:
>Hi all,
>I am working on a piece of code that simply does the following......
>1. checks for the existance of a file
>1.a. if exist, open and seek to end of file
>else
>1.b. create file
>
>2. write data to it
>3. close the file.
>4. goto 1.
>
>However if I put this in a try catch block, "ON CERTAIN PC'S" I get an 
>exception, "Operation completed successfully" (YES!!). This happens 
>before the file is closed so these are skipped, so when the code loops
>I get invalid handle....
>
>Can anyone explain why (or how) does such an exception exists.
>And this happens only on my customers' and PC not in my development 
>environment...
>
Technical Details
Message-ID: <40cf33f6@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: <40cf30dd$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,7c46295c31847129,start
X-Google-Attributes: gid10cc67,public
From: "Sam S. Firouz" <sfirouz@Hotmail.com>
Sender: "Sam S. Firouz" <sfirouz@Hotmail.com>
Reply-To: "Sam S. Firouz" <sfirouz@Hotmail.com>
Subject: Re: Exception 'problem'
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 132.250.186.55     
References:  <40cf30dd$1@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.66
Message-ID: <40cf33f6@newsgroups.borland.com>
Date: 15 Jun 2004 10:37:58 -0700
X-Trace: newsgroups.borland.com 1087321078 207.105.83.66 (15 Jun 2004 10:37:58 -0700)
Lines: 28
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