🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Problem with Service Hanging

#11086
From: Bob Gonder
Date: Thu, 26 Feb 2004 01:38
25 lines
1915 bytes
Remy Lebeau (TeamB) wrote:

>
>Hmm, interesting.  Considering that Jt has not yet answered my question
>regarding *when* he is calling his OpenFile() method, that might be a
>possibility.

Log
        TFileStream *OldFile = new TFileStream(Folder, fmOpenRead);
        TStAnsiTextStream *TS = new TStAnsiTextStream(OldFile);
Log

Since his Log isn't fine-grained, could he be hanging in
TStAnsiTextStream?

Also, do fopen and fprintf guarantee an automatic file flush with
every write?  I've gone round a few times with a log that stopped a
few messages before the last actual good message.....So, I don't rely
on logs to tell me _where_ an app hangs, just the last-known data it
was working on.


Hmmm.. a Service, right?
Might it be a re-entrancy problem?
For instance, "ptr" is global and therefore non-reentrant.
Technical Details
Message-ID: <9kiq30t8l3cg6a3r6faen23s8cnj7lbscm@4ax.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <403d08c8$1@newsgroups.borland.com> <403d27c0$1@newsgroups.borland.com> <25cq305gvts4b23ajlk1j18te0ctcsposn@4ax.com> <403d3651$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 17:39:56 PST
From: Bob Gonder <notbg@notmindspring.invalid>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Problem with Service Hanging
Date: Wed, 25 Feb 2004 17:38:12 -0800
Organization: MindSpring Enterprises, Inc.
Reply-To: notbg@notmindspring.invalid
Message-ID: <9kiq30t8l3cg6a3r6faen23s8cnj7lbscm@4ax.com>
References: <403d08c8$1@newsgroups.borland.com> <403d27c0$1@newsgroups.borland.com> <25cq305gvts4b23ajlk1j18te0ctcsposn@4ax.com> <403d3651$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.176.13
X-Trace: newsgroups.borland.com 1077759492 67.31.176.13 (25 Feb 2004 17:38:12 -0800)
Lines: 28
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail