🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Amount of open files

#5587
From: Andrue Cope [TeamB]
Date: Wed, 03 Aug 2005 12:43
28 lines
1959 bytes
Andreas Osswald wrote:

> But if you
> forgot once to use close() or you returned out of a function before
> you call close() a stream keeps open.

Hmmm. I'd call that careless programming :)

More seriously though that's why you shoul probably prefer class based
I/O (std::stream if you don't want to roll your own). They give you
built-in ownership symantics and you have to go out of our way to leave
one open.

But back to your question:This isn't really something the application
should have to do. It's a valid issue but I'd call it a bug. Bugs
should be resolved during debugging not left for the release code to
work around.

If your version of Builder has Code Guard (check for a [Code Guard] tab
on the project option) then use that. If not, download
http://www.automatedqa.com/downloads/memproof/

and while you're there check out the other stuff :)

-- 
Andrue Cope [TeamB]
[Bicester, Uk]
http://info.borland.com/newsgroups/guide.html
Technical Details
Message-ID: <42f0bbeb@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeed.hal-mli.net!feeder1.hal-mli.net!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.newsfeeds.com!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <42f09312$1@newsgroups.borland.com> <42f095b9$1@newsgroups.borland.com> <42f0b912$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,6a0cee41cdcb7499
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Andrue Cope [TeamB]" <no.spam@not.a.valid.address>
Subject: Re: Amount of open files
Newsgroups: borland.public.cppbuilder.nativeapi
References: <42f09312$1@newsgroups.borland.com> <42f095b9$1@newsgroups.borland.com> <42f0b912$1@newsgroups.borland.com>
Date: Wed, 3 Aug 2005 13:43:22 +0100
User-Agent: XanaNews/1.17.5.7
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
NNTP-Posting-Host: 217.207.223.34
Message-ID: <42f0bbeb@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1123073003 217.207.223.34 (3 Aug 2005 05:43:23 -0700)
Lines: 28
X-Authenticated-User: acope
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeed.hal-mli.net!feeder1.hal-mli.net!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.newsfeeds.com!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail