🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #111

Re: Too many open files error thrown from java.io.File

#111
From: Scott
Date: Sat, 10 Apr 2004 14:43
31 lines
2117 bytes
Owen,

Thanks for the advice on the try/finally approach.

One question: if a method (call it readMyStream) receives the stream as a
parameter, should I close it in readMyStream, or in the method that passed
the stream to readMyStream?

In a way, I'm still not clear when the stream gets opened -- when it's
instantiated or when the first read or write operation is performed.

And I'm not clear if close() would cause the next read/write request to fail
(because it's closed) or those would just re-open the stream.

Thanks



"Owen Green" <o.t.green@ntlworld.com> wrote in message
news:11b43zwzhv51k.dlg@borkborkbork.bork...
> On Sat, 10 Apr 2004 13:24:46 +0100, Owen Green wrote:
>
> > The Mp3 library seems to be open source, so - given that this is fixing
a
> > bug - you would be best off patching the source and rebuilding the
library.
>
> And sending your patched source back to the original author :)
>
> -- 
> Owen
Technical Details
Message-ID: <40780885@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <406edc6e$1@newsgroups.borland.com> <407073e5$1@newsgroups.borland.com> <40708fae$1@newsgroups.borland.com> <12t5q88i275kw.dlg@borkborkbork.bork> <11b43zwzhv51k.dlg@borkborkbork.bork>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,606a3d8ee4cf8a04
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2004-04-10 08:09:22 PST
Reply-To: "Scott" <scotthpowell@yahoo.com>
From: "Scott" <scotthpowell@yahoo.com>
Newsgroups: borland.public.jbuilder.java.api
References: <406edc6e$1@newsgroups.borland.com> <407073e5$1@newsgroups.borland.com> <40708fae$1@newsgroups.borland.com> <12t5q88i275kw.dlg@borkborkbork.bork> <11b43zwzhv51k.dlg@borkborkbork.bork>
Subject: Re: Too many open files error thrown from java.io.File
Date: Sat, 10 Apr 2004 10:43:34 -0400
Lines: 33
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: 24.239.150.17
Message-ID: <40780885@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1081608325 24.239.150.17 (10 Apr 2004 07:45:25 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail