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.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better π
Register LoginAdvertisement