Trace what prevents an object from being GC'd?
-
I finally nailed it. I created the procs for
add_action_callback
as class constants instead of creating blocks within theinitialize
method 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
@refs
because 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