🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: OutOfMemoryError

#882
From: daRoBBie
Date: Sun, 21 Jul 2002 19:48
14 lines
1724 bytes
> My main dilemma was this while loop:
>
> while((n = fin.read(buf)) >= 0)
> {
>     rq.output.write(buf);
> }

Uhm, in ilmer's post he used:
out.write(buffer, n);
You're only using out.write(buffer), but the buffer isn't gonna be full
everytime...

Greetz, Rob.
Technical Details
Message-ID: <3d3b1006$1_1@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!opentransit.net!fr.clara.net!heighliner.fr.clara.net!213.73.101.75.MISMATCH!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!dnews
References: <3D20CC5D.B70473C9@hfx.eastlink.ca> <MPG.178acb912dba8f7998b79d@newsgroups.borland.com> <3D21C1CA.F2D953E2@hfx.eastlink.ca> <3d21bb44_1@dnews> <3D21EC78.228A5CD3@hfx.eastlink.ca> <3d21e07b_2@dnews> <3D226288.1C7C905@hfx.eastlink.ca> <3d22ec28_1@dnews> <3D233ADD.C365148D@hfx.eastlink.ca> <3d245dff_2@dnews> <3D24D4AC.1B1BFBBC@hfx.eastlink.ca> <3d24db4d_2@dnews> <3D25C73F.4D8D94E0@hfx.eastlink.ca> <3d25c545_1@dnews> <3D2619EB.4E07BAF3@hfx.eastlink.ca> <3d263c73_2@dnews> <3D279904.389F6319@hfx.eastlink.ca>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,28eab50e784856ac
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2002-07-21 13:12:56 PST
From: "daRoBBie" <rob.tillie@student.tul.edu>
Newsgroups: borland.public.jbuilder.java.api
References: <3D20CC5D.B70473C9@hfx.eastlink.ca> <MPG.178acb912dba8f7998b79d@newsgroups.borland.com> <3D21C1CA.F2D953E2@hfx.eastlink.ca> <3d21bb44_1@dnews> <3D21EC78.228A5CD3@hfx.eastlink.ca> <3d21e07b_2@dnews> <3D226288.1C7C905@hfx.eastlink.ca> <3d22ec28_1@dnews> <3D233ADD.C365148D@hfx.eastlink.ca> <3d245dff_2@dnews> <3D24D4AC.1B1BFBBC@hfx.eastlink.ca> <3d24db4d_2@dnews> <3D25C73F.4D8D94E0@hfx.eastlink.ca> <3d25c545_1@dnews> <3D2619EB.4E07BAF3@hfx.eastlink.ca> <3d263c73_2@dnews> <3D279904.389F6319@hfx.eastlink.ca>
Subject: Re: OutOfMemoryError
Date: Sun, 21 Jul 2002 21:48:17 +0200
Lines: 16
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: 137.120.236.199
Message-ID: <3d3b1006$1_1@dnews>
X-Trace: dnews 1027280902 137.120.236.199 (21 Jul 2002 12:48:22 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!opentransit.net!fr.clara.net!heighliner.fr.clara.net!213.73.101.75.MISMATCH!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!dnews