🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.csharpbuilder.language.csharp
Article #637

Re: try catch question

#637
From: Rudy Velthuis [TeamB]
Date: Tue, 20 Jul 2004 10:56
21 lines
2232 bytes
At 01:09:20, 20.07.2004, Marc Rohloff [TeamB] wrote:

> On Mon, 19 Jul 2004 13:54:54 +0200, Rudy Velthuis [TeamB] 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.
> 
> My understanding of Dispose is that it closes the stream so I would
> expect this.

All IMO:

Semantically, that is not what Dispose is supposed to do. Anyway, it
should clean up the StreamWriter, and not the stream.
-- 
Rudy Velthuis [TeamB]

"Each problem that I solved became a rule which served afterwards to
solve other problems."
    - Rene Descartes (1596-1650), "Discours de la Methode"
Technical Details
Message-ID: <xn0dkztb01o8st00m-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-mail
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> <1teyodspjn2x4.dlg@marcrohloff.40tude.net>

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> <1teyodspjn2x4.dlg@marcrohloff.40tude.net>
Organization: TeamB
User-Agent: XanaNews/1.16.3.1
Date: Tue, 20 Jul 2004 12:56:56 +0200
Message-ID: <xn0dkztb01o8st00m-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:00004002
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
NNTP-Posting-Host: 80.135.223.240
X-Trace: newsgroups.borland.com 1090320727 80.135.223.240 (20 Jul 2004 03:52:07 -0700)
Lines: 21
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