Delete an object by its oop

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Delete an object by its oop

Paul DeBruicker
Hi -

I have some objects that want to delete and I know their oop.  I have
run nilFields on them and then run the Mark For Collection from the
GemTools Admin menu then System startAllReclaimGcSessions but they
continue to exist.   Is there a command to force an object to be garbage
collected or deleted?

Thanks.

Paul
Reply | Threaded
Open this post in threaded view
|

Re: Delete an object by its oop

Dale Henrichs
On 04/15/2011 07:51 AM, Paul DeBruicker wrote:

> Hi -
>
> I have some objects that want to delete and I know their oop.  I have
> run nilFields on them and then run the Mark For Collection from the
> GemTools Admin menu then System startAllReclaimGcSessions but they
> continue to exist.   Is there a command to force an object to be garbage
> collected or deleted?
>
> Thanks.
>
> Paul

Paul,

You need to track down the objects that reference the offending objects
and nil out the references ... Start by tracking down the "reference
path" and then you can find a convenient slot to nil out the reference.

If all you've got is an oop start by trying something like:

  (SystemRepository
     findReferencePathToObject: (Object _objectForOOp: oop))
         inspect

Dale