Article View: borland.public.cppbuilder.nativeapi
Article #10141Re: I need some tips of concurrent File access
From: Remy Lebeau (TeamB)
Date: Tue, 18 May 2004 20:47
Date: Tue, 18 May 2004 20:47
22 lines
1683 bytes
1683 bytes
"Vladimir Stefanovic" <antivari@ptt.yu> wrote in message news:40aa7528@newsgroups.borland.com... > I wonder how dangerous is that concurrent way > of accessing the LOG? I'm afraid that some > entries could fail to be written because I alredy > opened the LOG for reading. As long as you are only opening the file for reading, it is not dangerous. The service will continue to write to the file, and any other app will continue to see new data appear without having to reopen the file each time. > 2) Is there any better technique that I don't know > for the safe accessing that LOG contents? Make the service have exclusive access to the file, and then make all other apps communicate with the service and have it perform operations on the file on their behalf. Gambit
Technical Details
Message-ID:
<40aa777f$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!controlnews3.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-mailReferences:
<40aa7528@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,e86cfec8dc9314b5 X-Google-Attributes: gid10cc67,public From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <40aa7528@newsgroups.borland.com> Subject: Re: I need some tips of concurrent File access Date: Tue, 18 May 2004 13:47:11 -0700 Lines: 24 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 67.22.138.253 Message-ID: <40aa777f$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1084913535 67.22.138.253 (18 May 2004 13:52:15 -0700) Path: arc1-ca.pugleaf.net!controlnews3.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