Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Instantiating form class multiple times
Message
 
 
To
27/04/2016 11:02:52
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01635473
Message ID:
01635476
Views:
57
Thank you.

>It doesn't matter how much memory is on the computer. VFP is only able to use 2 GB.
>
>To test, you can evaluate the amount of memory free, open the form, then check again. Run some queries on the form, check again. Then open another instance of the form without closing the first. Lather, Rinse, Repeat.
>
>>Hi,
>>
>>In my VFP 9 application I have a form with many, many controls and many features. Currently a user can only create one instance of this form. When he/she clicks on the menu to open this form, the program checks if the form is already instantiated, and if so, simply restores it.
>>
>>Bases on some new business needs, I am thinking of allowing the user creating multiple instances of this form. My concern is that multiple forms will consume memory and possibly cause the application to slow down.
>>
>>1. How can I control/determine how much memory is being used by multiple instances of a form?
>>2. Should this even be a concern with the computers these days having a lot of memory (2+ GB)?
>>
>>TIA
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Reply
Map
View

Click here to load this message in the networking platform