Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Breaking locks on files for production runs
Message
De
12/08/2005 11:24:59
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
12/08/2005 09:49:02
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
Novell 6.x
Database:
Visual FoxPro
Divers
Thread ID:
01040530
Message ID:
01040568
Vues:
19
>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)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform