🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: be.comp.programming
Article #670

Re: [VB.NET] worden objecten gesloten (resources vrijgegeven) na exception ?

#670
From: Stefan Arentz
Date: Thu, 07 Sep 2006 06:38
15 lines
1751 bytes
John Bokma <john@castleamber.com> writes:

> "Dr.Ruud" <rvtol+news@isolution.nl> wrote:
>  
> > Ik kan me nog steeds niet voorstellen dat de Close niet al automatisch
> > gebeurt, en wel direct bij het out-of-scope raken van xmlrdr.
> 
> Als ik mij het heeeel goed herinner is dat bij Java *niet* het geval.

Dat klopt. Finalizers zijn onvoorspelbaar en implementatie
afhankelijk. Als je totale controle wil dan kan je het beste
zelf close() aanroepen. Mogelijk is dat op .Net net zo, maar
zeker weten doe ik dat niet :-)

 S.
Technical Details
Message-ID: <87pse818ra.fsf@kip.sateh.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news.glorb.com!newsgate.cistron.nl!xs4all!transit3.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
References: <1157379669.503669.211910@i42g2000cwa.googlegroups.com> <1157441721.895658.4750@i42g2000cwa.googlegroups.com> <44fd3121$0$21131$dbd41001@news.wanadoo.nl> <44fe77c3$0$1296$6c56d894@reader0.news.be.easynet.net> <44fe89c9$0$71631$dbd43001@news.wanadoo.nl> <edmi5f.11g.1@news.isolution.nl> <Xns98368EAF82335castleamber@130.133.1.4>

Show Full Headers
Complete Article Headers
X-Google-Thread: fcea4,7165765ea9e31236
X-Google-Thread: 107324,7165765ea9e31236
X-Google-Attributes: gidfcea4,gid107324,public
X-Google-Language: DUTCH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news.glorb.com!newsgate.cistron.nl!xs4all!transit3.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Sender: stefan@kip.sateh.com
Newsgroups: be.comp.programming,nl.comp.programmeren
Subject: Re: [VB.NET] worden objecten gesloten (resources vrijgegeven) na exception ?
References: <1157379669.503669.211910@i42g2000cwa.googlegroups.com> <1157441721.895658.4750@i42g2000cwa.googlegroups.com> <44fd3121$0$21131$dbd41001@news.wanadoo.nl> <44fe77c3$0$1296$6c56d894@reader0.news.be.easynet.net> <44fe89c9$0$71631$dbd43001@news.wanadoo.nl> <edmi5f.11g.1@news.isolution.nl> <Xns98368EAF82335castleamber@130.133.1.4>
From: Stefan Arentz <stefan.arentz@gmail.com>
Date: 07 Sep 2006 08:38:33 +0200
Message-ID: <87pse818ra.fsf@kip.sateh.com>
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Lines: 15
NNTP-Posting-Host: 82.94.255.227
X-Trace: 1157611515 news.xs4all.nl 4517 [::ffff:82.94.255.227]:4070
X-Complaints-To: abuse@xs4all.nl