🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: aus.computers.java
Article #447

Re: How to cleanup when a class is destroyed ?

#447
From: Paul Murray
Date: Sat, 14 Oct 2000 00:00
13 lines
1256 bytes
"DavidL" <email.address@in.message> wrote in message
news:39e62821$1@server.local...

> How do I ensure that the close() method is called ?
> It is unreasonable to expect that the application will always call the
> close() method, especially if there is an error.

You catch errors and handle them properly.

--------------------------------------------------------------
Repent! Quit your job! Slack off!
http://www.users.bigpond.com/pmurray
ICQ: 26066755
Technical Details
Message-ID: <KF6G5.2077$e5.5251@newsfeeds.bigpond.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <39e57bc3$1@server.local> <%rnF5.41125$td5.6548300@news1.rdc2.pa.home.com> <39e62821$1@server.local>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10d6db,d25b87a070be9251
X-Google-Attributes: gid10d6db,public
From: "Paul Murray" <pmurray@nospam.bigpond.com>
Subject: Re: How to cleanup when a class is destroyed ?
Date: 2000/10/14
Message-ID: <KF6G5.2077$e5.5251@newsfeeds.bigpond.com>
X-Deja-AN: 681539761
References: <39e57bc3$1@server.local> <%rnF5.41125$td5.6548300@news1.rdc2.pa.home.com> <39e62821$1@server.local>
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.3018.1300
X-Trace: newsfeeds.bigpond.com 971568874 139.134.124.220 (Sun, 15 Oct 2000 10:14:34 EST)
Organization: Telstra BigPond Internet Services (http://www.bigpond.com)
X-MSMail-Priority: Normal
NNTP-Posting-Date: Sun, 15 Oct 2000 10:14:34 EST
Newsgroups: aus.computers.java