🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: IDisposable - When?

#664
From: Marc Rohloff TeamB
Date: Mon, 20 Sep 2004 12:25
14 lines
1418 bytes
On Fri, 17 Sep 2004 13:54:30 +0300, Theo Bebekis wrote:

> Should I stop worrying and let GC do the job, when just managed resources
> are involved?

In addition to what has already been said you may want to implement
IDisposable if you contain unmanaged resources so that the calling
code can release them in a timely manner. In this case it would be
unnecessary to implement a Finalizer.


-- 
Marc Rohloff [TeamB]
marc rohloff at myrealbox dot com
Technical Details
Message-ID: <x1ic1e9le7pv.dlg@marcrohloff.40tude.net>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!easynet-quince!easynet.net!colt.net!peernews3.colt.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <414ac1ca@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 1efe35,b3e8021b863a6f6b
X-Google-Attributes: gid1efe35,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Marc Rohloff [TeamB]" <"on request">
Subject: Re: IDisposable - When?
Newsgroups: borland.public.csharpbuilder.language.csharp
User-Agent: 40tude_Dialog/2.0.13.1
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
References: <414ac1ca@newsgroups.borland.com>
Date: Mon, 20 Sep 2004 08:25:31 -0400
Message-ID: <x1ic1e9le7pv.dlg@marcrohloff.40tude.net>
NNTP-Posting-Host: 4.225.98.24
X-Trace: newsgroups.borland.com 1095683046 4.225.98.24 (20 Sep 2004 05:24:06 -0700)
Lines: 14
X-Authenticated-User: mrohloff
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!easynet-quince!easynet.net!colt.net!peernews3.colt.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail