Article View: borland.public.csharpbuilder.language.csharp
Article #635Re: try catch question
From: Rudy Velthuis [TeamB]
Date: Mon, 19 Jul 2004 20:11
Date: Mon, 19 Jul 2004 20:11
20 lines
2270 bytes
2270 bytes
At 21:59:45, 19.07.2004, Lord Crc wrote: > On Mon, 19 Jul 2004 13:54:54 +0200, "Rudy Velthuis [TeamB]" > <velthuis@gmail.com> wrote: > > > Yes. But once someone writes a StreamWriter derivate which does > > something additional in Close() (even if it is just logging > > something, for instance), you'll have a problem. > > After thinking abit, i have to agree to a point. However, i still > think "using" is in it's place, as it will call Dispose for you (using > your argument, it should still be disposed properly After Close(), I don't see a real need to dispose it "properly". And notice that it is a StreamWriter you are closing, not the stream itself. -- Rudy Velthuis [TeamB] "Quote me as saying I was mis-quoted." -- Groucho Marx
Technical Details
Message-ID:
<xn0dkytf6l3s0q026-moderator@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<40f3748e@newsgroups.borland.com> <40F380DB.819CE161@midnightbeach.com> <40f934bb$1@newsgroups.borland.com> <s3am1jplg0p9$.dlg@marcrohloff.40tude.net> <is0jf0l76g610ajlns5154ij25vantsvp6@4ax.com> <xn0dkx9y9ftcjf013-moderator@newsgroups.borland.com> <40faddbc$1@newsgroups.borland.com> <xn0dkyerh1bs6700c-moderator@newsgroups.borland.com> <iw4h7deon4y4$.dlg@marcrohloff.40tude.net> <xn0dkyg9n3d03000n-moderator@newsgroups.borland.com> <1s9of05uicti69vtg74g9ca1eibiljlc4h@4ax.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 1efe35,f80ee75cfac101b9
X-Google-Attributes: gid1efe35,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Rudy Velthuis [TeamB]" <velthuis@gmail.com>
Subject: Re: try catch question
Newsgroups: borland.public.csharpbuilder.language.csharp
References: <40f3748e@newsgroups.borland.com> <40F380DB.819CE161@midnightbeach.com> <40f934bb$1@newsgroups.borland.com> <s3am1jplg0p9$.dlg@marcrohloff.40tude.net> <is0jf0l76g610ajlns5154ij25vantsvp6@4ax.com> <xn0dkx9y9ftcjf013-moderator@newsgroups.borland.com> <40faddbc$1@newsgroups.borland.com> <xn0dkyerh1bs6700c-moderator@newsgroups.borland.com> <iw4h7deon4y4$.dlg@marcrohloff.40tude.net> <xn0dkyg9n3d03000n-moderator@newsgroups.borland.com> <1s9of05uicti69vtg74g9ca1eibiljlc4h@4ax.com>
Organization: TeamB
User-Agent: XanaNews/1.16.3.1
Date: Mon, 19 Jul 2004 22:11:37 +0200
Message-ID: <xn0dkytf6l3s0q026-moderator@newsgroups.borland.com>
X-Realname: Rudy Velthuis (TeamB)
X-Face: ":yn4zt^A_dn>6~{YJmu^B\'4w)e:apPM\VC=Dvf&*tASxX9|BYczkFd$xr.$vNSZ[3Uobr
p]c4\+\l){!WQI.$]veP({HLd;CDYH?iN
X-Ref: newsgroups.borland.com ~XNS:00003FE7
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
NNTP-Posting-Host: 217.93.139.248
X-Trace: newsgroups.borland.com 1090267610 217.93.139.248 (19 Jul 2004 13:06:50 -0700)
Lines: 20
X-Authenticated-User: rvelthuis
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail