and of course you are both correct , I have a
circular reference, basically an object A referencing�� object��
B�� which references object A. No wonder why is not gc. Thanks
for helping me out spotting this.
Le
30/11/2015 11:40, Dimitris Chloupis a ��crit :
> I am wondering when an instance of a class is garbage
collected and
> deleted from the system.
>
> is there a way to manually deleted it ?
If there is no Object that reference your object you can
force a Garbage
collect with "Smalltalk garbageCollect". If your object is
still here
you can try to see what point to it with "(X allInstances
collectAsSet:
#pointersTo) inspect".
When the reference is spotted you can try to remove it
then garbage
collect again.
--
Cyril Ferlicot
http://www.synectique.eu
165 Avenue Bretagne
Lille 59000 France