Re: win32lib: Munafa Accounting Package
- Posted by Anando Banerjee <anandobanerjee at rediffmail.com> Jul 04, 2005
- 455 views
Anando Banerjee wrote: > > Am unable to disclose source code at present. But everything is simple: > Each menu item is a separate 'include' file. > Each 'include' file is a window with it's controls. > As you can the program starts off with a huge bunch of local constants hogging loads of memory. constant SomeWindow=create(Window, ...) constant SomeControl=create(EditText, ...) and so on. The actual project I am working on is even bigger and will have lots more user-interactive windows. My question is: how can I reduce the number of local constant windows at start-up and create only the constants (windows) the user clicks for. When the user exits the window, how can I release the constant until it is required again? destroy() removes the constant all together, closeWindow() keeps it in memory. Is there something else I am missing? Thanks & regards. Anando