Article View: borland.public.jbuilder.java.language
Article #7785Re: killing objects
From: Valentino Kyriakides
Date: Mon, 14 May 2001 09:29
Date: Mon, 14 May 2001 09:29
25 lines
1764 bytes
1764 bytes
After setting an object to null, you can call the garbage collector: System.runFinalization(); System.gc(); Note however, that it depends on the GC if he likes to immedeately free up previously consumed memory or not. In other words, there is no warranty that the GC will do this straight when called. Also if there are otherwere in your prog possible dangling references to the released object (object = null), the GC will not free it up until those references have been released too. Valentino "ArShAm" <ArShAm@abshar.net> schrieb im Newsbeitrag news:3aff22d5_1@dnews... > Hi there > How to make sure an object is killed? > I mean explain me when I make an object to null , what happens exactly? is > the memory freed? or not? > > if not , how to free the memory? > Thanks > ArShAm > >
Technical Details
Message-ID:
<3affa619_2@dnews>Path:
arc1-ca.pugleaf.net!archiver1.sj.google.com!newsfeed.google.com!sn-xit-03!supernews.com!cyclone-sjo1.usenetserver.com!news-out-sjo.usenetserver.com!news.tele.dk!212.74.64.35!colt.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnewsReferences:
<3aff22d5_1@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,d2ac741b1b0a7362 X-Google-Attributes: gidf74b3,public X-Google-ArrivalTime: 2001-05-14 02:40:10 PST From: "Valentino Kyriakides" <vkyr@nospamlavielle.com> Newsgroups: borland.public.jbuilder.java.language References: <3aff22d5_1@dnews> Subject: Re: killing objects Date: Mon, 14 May 2001 11:29:06 +0200 Lines: 27 Organization: ISION X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 NNTP-Posting-Host: 194.64.62.36 Message-ID: <3affa619_2@dnews> X-Trace: dnews 989832729 194.64.62.36 (14 May 2001 02:32:09 -0700) Path: arc1-ca.pugleaf.net!archiver1.sj.google.com!newsfeed.google.com!sn-xit-03!supernews.com!cyclone-sjo1.usenetserver.com!news-out-sjo.usenetserver.com!news.tele.dk!212.74.64.35!colt.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews