I have a Linked Web data structure (?) That is. each object has a bunch of links to other objects.
So, I wrote a method that should "delete" the passed object, removing all references to it.
I need to test it and make sure that after the method is run, the specific object that I want to delete does not refer to anything else
How can i do this?
The idea would be to get the Garbage Collection to run my delete object method, and then get another GC to see if it found the object.
if he found an object for deletion, I would suggest that my method works but if he did not find anything to collect, I would assume that something is referencing it and he will have to connect this leak.
Is it possible? How?
Thanks Ryan
source
share