mike5 Posted November 4, 2011 Report Share Posted November 4, 2011 Hi all, I have a question regarding the use of the variant as hash: suppose you have the variant in an object, and you store some values into it. What happens when the object gets out of scope and is garbage collected? Is the variant hash cleared as well? Or does the "Delete Variant Attribute" need to be called to prevent memory leak? Thanks in advance, Mike Quote Link to comment
drjdpowell Posted November 4, 2011 Report Share Posted November 4, 2011 Everything's by-value, not by-reference, so the variant attributes disappear with the variant and containing object. Quote Link to comment
mike5 Posted November 4, 2011 Author Report Share Posted November 4, 2011 Thanks! Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.