Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Object destruction
Message
From
04/02/2014 13:58:39
 
 
To
03/02/2014 18:33:08
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
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:
01593183
Views:
28
>>>>When is it very large? We found that 2000 is no problem. However, 5000 or more is troublesome. Somewhat smarter coding should focus on reducing the number of objects.
>>>
>>>There you go. It's hard to imagine a proper OO design including a class with 2000 objects.
>>
>>Is it, Mike ?
>
>Forget Mike, he openly confesses problems with his imagination :).
>
>Actually, when the requirements are such, a good OOP design is perhaps the only way to have that many objects efficiently organized.

Actually 10K+ objects in vfp would have me looking for alternate architecture - less in a modal form - but here loading and throwing away chunks of 500 objects may be better usage. 10K+ in vfp needs one or few table(s) - even if half of that is only GUI eye candy. That many objects really needed - esp. if needed in [vfp-GUI] object hierarchy and not in properties - I would turn to Java or C# or C++ by instinct ;-)
>
>An afterthought - if form destruction is so slow (but by now we see Peter has reduced the problem to manageable sizes), perhaps hidden destruction would work. Hide the form, stop its code, then fire a timer and slowly release the objects at some lower level, one container at a time.

Yupp, one nice way
Previous
Reply
Map
View

Click here to load this message in the networking platform