Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Request Advice on Classes
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00147168
Message ID:
00147527
Views:
33
>>>I am new to using classes and am concerned about performance. To speed up the load time of my pageframes I have created a class called pgframes.vcx and added the individual pages to it. Should I be using a separate library file for each pageframe? I noticed that the current .vcx file is 1.2 megs with about 12 pages from 3 pageframes. What is the effect of loading this large file? Should I release the library each time? Should I break up the library so I am not loading unnecessary information? Any feedback is most appreciated.
>>>Marcus.
>>
>>You can put all the classes into a single VCX. The time is saved when you don't instanciate any page-class until the first time the user clicks on that page.
>>
>>Barbara
>
>Thanks Barbara, Should I release the library when leaving the form or should it be left in memory for the next time I come to a pageframe? Thanks Again.
>
>Marcus.

Don't bother releasing the library. Just let it sit there waiting for its next use. If it were MY app I'd load the library in the MAIN.PRG and have it available whenever I wanted it.

Barbara
Barbara Paltiel, Paltiel Inc.
Previous
Reply
Map
View

Click here to load this message in the networking platform