Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Object destruction
Message
From
03/02/2014 18:57:40
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:
01593064
Views:
34
>>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.
>
>This type of solution was already proposed by someone here. But it requires a modeless form. One might in that case even consider a design where the form isn't destroyed at all, but rather made invisible until it is reused for a next case.

Hiding a modal form passes control to the next line after oFrm.show(), by which time the timer could be triggered by form's .hide(), or if the form has to pass results to caller, then the caller may call oFrm.Harakiri().

With your optimizations now in place (I guess you removed stuff that's not used on weekends, holidays and the current guy's sick leaves and vacation), reusing the form would now require more checking for objects which may be missing (the next guy's vacation is at different time, had no sick leave).

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform