#referencePathToRoot

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

#referencePathToRoot

sibendovi.w2
Hello,

I am trying to find what prevents my object from being garbage collected. There is hint, that method Object>>#referencePathToRoot would do it, but I could not find where it is implemented. Is there any alternative? Going level by level using #basicAllReferences is almost impossible.

Thank you,

     Stan

--
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/va-smalltalk.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: #referencePathToRoot

Richard Sargent
Administrator
I think you may need to use The Exorcist. I had thought to find it on vastgoodies.com, but it isn't obvious, if it is there. Totally Objects has it at http://www.totallyobjects.com/vafree.htm.

On Tuesday, May 30, 2017 at 5:30:45 PM UTC-7, [hidden email] wrote:
Hello,

I am trying to find what prevents my object from being garbage collected. There is hint, that method Object>>#referencePathToRoot would do it, but I could not find where it is implemented. Is there any alternative? Going level by level using #basicAllReferences is almost impossible.

Thank you,

     Stan

--
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/va-smalltalk.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: #referencePathToRoot

sibendovi.w2
Thank you, #referencePathToRoot now works for me. I had to raise stack limits to be able to use it:

Process defaultStackSize: 1024 * 6. Process stackOverflowWarningSize: 16384 * 6


Also it was hitting EsWeakArray instances, so I had to call it like this: 


| spf | 3 timesRepeat: [System globalGarbageCollect].

(spf := ExoDiGraphShortestPathFinder newForObjectPointers) excludedObjects: (EsWeakArray allInstances", EsQueue allInstances"); shortestPathFrom: spf systemRoots 

to: ImageViewerOCX allInstances last


Now only if I would figure out why I do have references through EsQueue :-(.


Best Regards,

     Stan

On Friday, June 2, 2017 at 11:38:29 AM UTC-5, Richard Sargent wrote:
I think you may need to use The Exorcist. I had thought to find it on <a href="http://vastgoodies.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fvastgoodies.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHxjcEL5lPg-RJkLXxK7FrDTlALcw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fvastgoodies.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHxjcEL5lPg-RJkLXxK7FrDTlALcw&#39;;return true;">vastgoodies.com, but it isn't obvious, if it is there. Totally Objects has it at <a href="http://www.totallyobjects.com/vafree.htm" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.totallyobjects.com%2Fvafree.htm\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF69pfwQpw4rc2a5GYKpNt2FjRjTw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.totallyobjects.com%2Fvafree.htm\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF69pfwQpw4rc2a5GYKpNt2FjRjTw&#39;;return true;">http://www.totallyobjects.com/vafree.htm.

On Tuesday, May 30, 2017 at 5:30:45 PM UTC-7, [hidden email] wrote:
Hello,

I am trying to find what prevents my object from being garbage collected. There is hint, that method Object>>#referencePathToRoot would do it, but I could not find where it is implemented. Is there any alternative? Going level by level using #basicAllReferences is almost impossible.

Thank you,

     Stan

--
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/va-smalltalk.
For more options, visit https://groups.google.com/d/optout.