Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Breaking locks on files for production runs
Message
From
12/08/2005 11:24:59
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
12/08/2005 09:49:02
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
Novell 6.x
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01040530
Message ID:
01040568
Views:
22
>Hey all,
>
>Its been a long while since I posted (did anyone miss me?)
>
>I wrote an application a long time ago (for Ingram Book Company) to break file locks so that production runs could be done during the night, but I forgot the name of the program that did the hard part of the work. Anyone know of a program to break locks on files left open by employees that are required for night-time processing?
>
>
>Al Smith
>(now working for the State of Tennessee)

What I do: The application checks every 2 minutes if there is a file called "maintenance.tmp". If the file exists, goApp.OnQuit() is called (the quit method of the application object - VFX framework).

Unfortunately, this method doesn't guarantee that the application really exits, since the user may have unsaved data ("Do you want to save? Yes / No / Cancel") - but it works quite often.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform