Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
π« Lightbeans Update | Metallic and Roughness auto-applied in SketchUp 2025+ Download
Trace what prevents an object from being GC'd?
-
I finally nailed it. I created the procs for
add_action_callbackas class constants instead of creating blocks within theinitializemethod and that allowed the WebDialog to be GC'd. -
@unknownuser said:
(http://forums.sketchucation.com/viewtopic.php?f) of this topic":25oe0j3o]
Did you dispose of all Locals, Constants, instance vars, and perhaps maybe even Procs that are within your subclass?
That said... you should be able to have proc refs, if they are instance
@refsbecause they are likely to have refs inside them that ref instance objects.If the class is a singleton (most WebDialogs are,) just limit the number of instances to 1, in the wrapping namespace, the same way you would for a tool instance.
Advertisement