Is object clearing/array deallocation really necessary in VB6/VBA (Pros/Cons?)

Posted by Oorang on Stack Overflow See other posts from Stack Overflow or by Oorang
Published on 2009-10-06T13:58:35Z Indexed on 2010/04/16 15:53 UTC
Read the original article Hit count: 141

Hello, A lot of what I have learned about VB I learned from using Static Code Analysis (Particularly Aivosto's Project Analyzer). And one one of things it checks for is whether or not you cleared all objects and arrays. I used to just do this blindly because PA said so. But now that I know a little bit more about the way VB releases resources, it seems to me that these things should be happening automatically. Is this a legacy feature from pre VB6, or is there a reason why you should explicitly set objects back to nothing and use Erase on arrays?

© Stack Overflow or respective owner

Related posts about vba

Related posts about vb6