-
Hi,
I have a few questions about Modules:
1) how long Modules stay in memory when a function in them is executed?
2) Does it remain in memory for the entire duration of the program?
3) If it does remain, is there anyway to "unload" it from memory?
4) How should I organize my data in modules? I've been reading that I should split code that is similar into a separate module so that those functions are only loaded when they need to be. Is this right?
Any help would be appreciated. I do apologize if this has been covered before but when I tried to used the search it said that the administrator had disabled the function. :(
Thanks.
Nick
-
The information will remain in memory as long as the application is running. Memory is refreshed every few milleseconds, and if the application is running, the information is refreshed. It is possible to have a form stay resident in memory if you do not explicitly unload it when your application is terminated (ie. more than one form in a project that is still running or hidden). If the form does not call to the memory location, the operating system will write over the code in memory. If at that time the app. needs the information from memory, and it has changed or has been corrupted, it will be up to the app. to load it from the hard drive.
I hope this helps!
Lee