Cage opened this issue on Dec 20, 2006 · 1232 posts
Cage posted Fri, 18 April 2008 at 12:12 AM
Another question for the Quizzical Cage Queue. The HitPoint type includes a TriPoly type listing. Is this a reference, or a copy? If it's a reference, that may be the cause of my RAM issue. I loop through a series of Mesh instances which exist only during the comparison loop and are overwritten as the loop progresses, but I save the HitPoint lists for use in a subsequent comparison loop. If the HitPoints being saved contain references to the TriPolys of these Mesh instances, they could end up being orphaned references, such as are supposed to cause trouble for the Python garbage collector. The Mesh objects to which they refer have been deleted, but the references persist and can't be cleaned up when it's time, because the object to which they refer no longer exists.
At least that's my understanding of how that particular memory snarl can crop up. If these are references, I may be better off copying the data from the HitPoints rather than storing them....
Again, no rush on an answer. I'm posting the questions as I have them so I don't forget to ask when you're able to answer....
===========================sigline======================================================
Cage can be an opinionated jerk who posts without thinking. He apologizes for this. He's honestly not trying to be a turkeyhead.
Cage had some freebies, compatible with Poser 11 and below. His Python scripts were saved at archive.org, along with the rest of the Morphography site, where they were hosted.