Newsgroups: comp.lang.smalltalk
Path: cantaloupe.srv.cs.cmu.edu!rochester!udel!news.mathworks.com!zombie.ncsc.mil!simtel!col.hp.com!news.dtc.hp.com!hplextra!hplb!news
From: men@hplb.hpl.hp.com (Marc Nijdam)
Subject: Re: objects that won't be garbage collected (VW 2.0)
Message-ID: <bx4tzsbliu.fsf@mnijdam.hpl.hp.com>
Sender: men@mnijdam.hpl.hp.com
In-Reply-To: david_murrell@mail.amsinc.com's message of 4 Aug 1995 21:30:58 GMT
Date: Tue, 8 Aug 1995 12:57:44 GMT
Lines: 17
References: <3vu3ii$80f@ams.amsinc.com>
Nntp-Posting-Host: mnijdam.hpl.hp.com
Organization: Hewlett-Packard
X-Newsreader: (ding) Gnus v0.99.5


One of the built in utilities I often use is the ReferencePathCollector
class. You inspect YourSpecificClassName allInstances, inspect one of those,
and do ReferencePathCollector allReferencePathsTo: self which will return you
an array of link-paths to that instance (one of course going to the
inspector). I often find the mistake by just inspecting the paths to one of
the instances. Fix it, and then use one of the more crude techniques for
getting rid of references.

Obviously using something like ObjectExplorer could make this process a lot
less painfull...

Cheers,

Marc Nijdam
e-mail: men@hplb.hpl.hp.com
phone : +44-117-9228711
-- 
Marc Nijdam
e-mail: men@hplb.hpl.hp.com
phone : +44-117-9228711
