Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cursors, foiled again...
Message
From
22/08/2009 21:51:21
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
21/08/2009 14:18:02
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01419575
Message ID:
01419883
Views:
74
>You mentioned deleting "dead" temp files, which I think should be taken care of by a separate maintainance module. In my applications this maintainance module also has options for recreating indexes and similar stuff, which only should be done very rarely.

The reason there are dead temp files is any kind of error. VFP generally cleans after itself on a successful exit. So in case of an error, the app has possibly unable to exit (stuck and needs a bouncer to kick her out of the bar) or has exited prematurely - in both cases a cleanup won't be run. Even if you launch the app again and quit, the cleanup may not be able to clean the previous instance's garbage, as it may still be open.

My strategy is to keep the mess, but keep it small. On a successful exit, I clean anything in the temp folder that's older than three days, one file at a time. The erase {filename} command doesn't complain if it can't erase, so no error handling to worry about.

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