Article View: borland.public.cppbuilder.nativeapi
Article #11083Re: Problem with Service Hanging
From: Bob Gonder
Date: Wed, 25 Feb 2004 23:45
Date: Wed, 25 Feb 2004 23:45
27 lines
1908 bytes
1908 bytes
Remy Lebeau (TeamB) wrote: >For anyone reading this discussion, the real question to the problem is th e >following: > >Under what situations would CreateFile() (which TFileStream calls >internally) hang indefinately when opening a file? > >Gambit Hmmm.. difficult speculation. I've never thought about CreateFile hanging. Always expect it to return one way or another. Spec#1) Might the file be a "temporary" file that the os deletes as soon as it is closed? Trapping the Open mid-stream? 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? Spec#3) He doesn't show the contents of Folder....might be a clue in there? >> TFileStream *OldFile = new TFileStream(Folder, fmOpenRead); Maybe he should add the value of Folder to his log.
Technical Details
Message-ID:
<25cq305gvts4b23ajlk1j18te0ctcsposn@4ax.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>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: Bob Gonder <notbg@notmindspring.invalid> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Problem with Service Hanging Date: Wed, 25 Feb 2004 15:45:36 -0800 Organization: MindSpring Enterprises, Inc. Reply-To: notbg@notmindspring.invalid Message-ID: <25cq305gvts4b23ajlk1j18te0ctcsposn@4ax.com> References: <403d08c8$1@newsgroups.borland.com> <403d27c0$1@newsgroups.borland.com> X-Newsreader: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 67.31.164.116 X-Trace: newsgroups.borland.com 1077752739 67.31.164.116 (25 Feb 2004 15:45:39 -0800) Lines: 29 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