|
-
Feb 15th, 2010, 08:52 PM
#10
Re: need help to store data from a closed form
 Originally Posted by LaVolpe
Thanx for the info on the Private values. That is information I wish I would have learned 10+ years ago. So, if I had declared myArray() in the declarations portion of the form and later resized it to say 10000 elements, when the form unloads that array's elements are not cleared and neither is the memory used for it. I now know the answer to that question is not what I expected before I verified your statement (verified!). I think I will take a look at some of my more recent apps for potential zeroizing of private variable declarations, or setting the unloaded form to Nothing.
So in other words. Private/Public variables declared in a form's declaration section are "static" and only when the form is set to Nothing is the memory for those variables released. Gotcha.
Edited: I definitely learned something new today as may many others that read this thread. Thanx.
You're welcome. We learn from each other.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|