🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: FindFirst Open File Error

#4102
From: Orlando Lopez
Date: Wed, 15 Mar 2006 13:21
11 lines
1338 bytes
Hi Gambit,
>You are not specifying any sharing rights:
>
>    TStream *file = new TFileStream(this->AppPath + sr.Name, fmOpenRead |
>fmShareDenyWrite);
yes, but anyway, I only want to open the file using TClientDataSet
(there are XML files), but I was getting an EFOpen File error
using the TFileTream (using LoadFormFile). I could find that the FindFirst/FindNext
open the file with no shared.
I solved this using FindClose() after FindNext.
Technical Details
Message-ID: <441822d4$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.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: <44170bbb$1@newsgroups.borland.com> <44176abd$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,dfd9baf79c8d00b4
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Orlando Lopez" <hlopezrd@hotmail.com>
Sender: "Orlando Lopez" <hlopezrd@hotmail.com>
Reply-To: "Orlando Lopez" <hlopezrd@hotmail.com>
Subject: Re: FindFirst Open File Error
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 200.88.202.202     
References: <44170bbb$1@newsgroups.borland.com> <44176abd$1@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.66
Message-ID: <441822d4$1@newsgroups.borland.com>
Date: 15 Mar 2006 06:21:08 -0700
X-Trace: newsgroups.borland.com 1142432468 207.105.83.66 (15 Mar 2006 06:21:08 -0700)
Lines: 11
Path: arc1-ca.pugleaf.net!g2news1.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