Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Instantiating form class multiple times
Message
From
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:
01635474
Views:
77
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
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform