A
andrew.may
Guest
@Thomas ... For A to to tell the GC "I don't care about object xyz any more", all it has to do is to do one of the folllowing: Let any variable holding a reference to xyz go out of scope (e.g. if a reference is only required for the life of a method/proc then use a local variable to hold the reference). If you can't get the variable scope small enough then overwrite your reference with a null reference. e.g. ASSIGN myObjectXyzReference = ?. If A gets rid of its reference when it doesn't care about xyz any more & B does the same then the GC will work as desired.
Continue reading...
Continue reading...