Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Object destruction
Message
From
01/02/2014 00:53:45
 
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows 8
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Web
Miscellaneous
Thread ID:
01592795
Message ID:
01592805
Views:
86
not fully on topic - in one large app scenario we skip form destruction if shutdown event is asked for -
we walk all forms to close tables, but then kill process while 0..n forms may still be instatiated. Best optimization is to skip running unneccessary code ;-)

>The formclass I recently developed can have as much as over 1800 objects. What strikes me is that it builds the form in a snap, but it requires almost a minute to 'destroy'.
>There's no special, time consuming, code in any Destroy(). And only some have some code in their QueryUnload() or Release().
>Who knows of any trick to speed up the destruction of the form?
>Perhaps it's the fact that a subset of those objects have properties that refer to other objects? Hmm, I'll gonna try this out.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform