Article View: borland.public.cppbuilder.nativeapi
Article #1068Re: detect how many files are open
From: Marc
Date: Sat, 17 Nov 2007 15:02
Date: Sat, 17 Nov 2007 15:02
80 lines
3181 bytes
3181 bytes
> What is the Windows performance monitor?
> How can I start it?
Start->Einstellungen->Systemsteuerung->Verwaltung->Leistung
(I hope your Windows "speaks" German :-)
Rds
Marc
"Josef Halder" <no_spam@email.xxx> schrieb im Newsbeitrag
news:473edfe8$1@newsgroups.borland.com...
> Hi Marc,
>
> this error appears only at our customers. I don't mange to simulate this
> special situation in the IDE.
> Thats my problem.
> So I can't use CodeGard. Or is there a way to use CodeGard outside the
> IDE?
>
> With old MS DOS programs (long time ago) it was possible to detect how
> many
> files are open.
> The function flushall() resulted the count of open files.
> But windows programs doesn't support this.
>
> What is the Windows performance monitor?
> How can I start it?
>
> Thanks
> Josef
>
>
>
>
> "Marc" <info@mawnet.com> schrieb im Newsbeitrag
> news:473ed068$1@newsgroups.borland.com...
>> Josef
>>
>> I had a similar situation and used the Windows performance monitor to
> track
>> the open file handles. This pointed me to the moment when a handle was
>> opened but not closed again.
>> Another thing that helped me in the past for those issues was the
> CodeGuard.
>>
>> Rds
>> Marc
>>
>>
>> "Josef Halder" <no_spam@email.xxx> schrieb im Newsbeitrag
>> news:473eca61$1@newsgroups.borland.com...
>> > Hi,
>> >
>> > is there a way to detect how many files are open at the moment?
>> > My problem is when the program is running two weeks or longer without
>> > restart then comes a point after that is not longer possible to open
>> > (to
>> > read or to write) a file. After that point any attempt to open a file,
>> > generates an error.
>> > I belive there is a situation a file is not closed. But the program is
>> > very
>> > complex so it's difficult to find out.
>> >
>> > Example:
>> > At various times during the program is running I open files with FILE
> *f
>> > =
>> > fopen("Filename.TXT","rt");
>> > I read/write and after that I close with fclose(f);
>> >
>> > Thanks for help
>> > Josef
>> >
>> >
>>
>>
>
>
Technical Details
Message-ID:
<473f02b7@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!ecngs!feeder2.ecngs.de!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<473eca61$1@newsgroups.borland.com> <473ed068$1@newsgroups.borland.com> <473edfe8$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,da0bfab45ef29be4 X-Google-Attributes: gid10cc67,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Reply-To: "Marc" <info@mawnet.com> From: "Marc" <info@mawnet.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <473eca61$1@newsgroups.borland.com> <473ed068$1@newsgroups.borland.com> <473edfe8$1@newsgroups.borland.com> Subject: Re: detect how many files are open Date: Sat, 17 Nov 2007 16:02:20 +0100 Lines: 82 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3138 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 83.77.49.247 Message-ID: <473f02b7@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1195311799 83.77.49.247 (17 Nov 2007 07:03:19 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!ecngs!feeder2.ecngs.de!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail