Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Speed up opening of forms
Message
From
13/10/1998 10:31:52
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00146146
Message ID:
00146221
Views:
25
>Hi,
>
>We find that our forms are slow to open and this partly because all objects are part of some class and they all have code in their Init() method. Most of the code is associated with resizing the forms without any restrictions for the user.
>
>To optimize the speed of opening the forms we are trying to solutions and I hope that if anyone has experience in this area we could share our thoughts.
>
>The two things we are doing is:
>
>1. When a form is closed by the user we hide it and reuse it later. This is absolutely the quickest way we have found to "open" a form. However, if we were to open all forms and hide them before giving the user access to the program, it would take too long for the user to start the application.
>
>2. We have been testing to save the already initialized form as a form and as a class and then used these instead of the original form so that the Init() don't need to run. Although we seem to save some time doing this, the forms are still slow to open. In our tests creating an object from a save class was quicker than using a saved form.
>
>Help appreciated...


Disk I/O is still one of the slowest things the computer does. Open all the tables in your MAIN.PRG.
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