Article View: borland.public.cppbuilder.nativeapi
Article #11084Re: Problem with Service Hanging
From: Remy Lebeau (TeamB)
Date: Thu, 26 Feb 2004 00:05
Date: Thu, 26 Feb 2004 00:05
28 lines
2046 bytes
2046 bytes
"Bob Gonder" <notbg@notmindspring.invalid> wrote in message news:25cq305gvts4b23ajlk1j18te0ctcsposn@4ax.com... > I've never thought about CreateFile hanging. Always > expect it to return one way or another. Agreed. I've never seen it happen myself either. But from Jt's original message, that is the only way TFileStream's constructor can freeze, since all it does is call either FileOpen() or FileCreate() based on the Mode parameter, which in turn simply call CreateFile() directly with various parameters. > Spec#1) Might the file be a "temporary" file that the os > deletes as soon as it is closed? Trapping the Open mid-stream? I would expect CreateFile() to fail on that. > Spec#2) Might there be a "race" condition in the os where the > file "starts" to be created, his services gets notified, and he tries > to open the file before it is fully created? Hmm, interesting. Considering that Jt has not yet answered my question regarding *when* he is calling his OpenFile() method, that might be a possibility. Gambit
Technical Details
Message-ID:
<403d3651$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!news.belwue.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<403d08c8$1@newsgroups.borland.com> <403d27c0$1@newsgroups.borland.com> <25cq305gvts4b23ajlk1j18te0ctcsposn@4ax.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,f5b18ffe280796bd X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2004-02-25 16:10:30 PST From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <403d08c8$1@newsgroups.borland.com> <403d27c0$1@newsgroups.borland.com> <25cq305gvts4b23ajlk1j18te0ctcsposn@4ax.com> Subject: Re: Problem with Service Hanging Date: Wed, 25 Feb 2004 16:05:23 -0800 Lines: 30 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: <403d3651$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1077753425 67.22.138.253 (25 Feb 2004 15:57:05 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!news.belwue.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail