Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Send signals to each user using same system
Message
De
20/02/2008 12:47:26
 
 
À
20/02/2008 08:10:09
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01293566
Message ID:
01294343
Vues:
27
>>The one problem with VFP timer is that it doesn't fire under all circumstances ...
>
>Actually, our application sometimes fails to shut down for a different reason (I think). From the Timer, I invoke goProgram.OnQuit(), where goProgram is the global application object.
>
>Now, this is the same as if the user presses Alt-F4. In other words, the application tries to do a "clean" shutdown; if there are pending changes, the user will see a dialog, asking to save. Now, if the user went for a coffee break...
>
>I guess I might try a QUIT instead (force a shutdown, don't save changes), but I am no longer in charge of said application now.
>
>Also, we don't always want to throw out some 30-40 users; so sometimes we just called the departments who regularly use a certain file.
>
>In both cases, we also used a customized verion of the FAQ by Ramon Jaquez, to see who has a file open. Usually the file we wanted to REINDEX or something; or the executable if we wanted the users to close their application completely.

Hilmar:

As they say, there are many ways to skin the cat. Alt+F4 seems a bit extreme to me, though. If you use transactions and have clean transaction boundaries, you could use the option I use: rollback open transactions before shutting down the application. If you are NOT using transactions, however, "the cat" gets a lot nastier and hairier...

***

BTW, how do the Columbians feel about (North) Americans these days. I watched "Cocalero" (about the rise of Evo Morales) the other day, and couldn't help noticing that part of the standard political slogans was "Death to the Yankees" or some such silliness (by which I assume they meant U.S. citizens, not the baseball team <g>). I understand that this maybe just something people say without thinking much about it. However, I am planning to come to Columbia (maybe actually Cochabamba) on a Habitat for Humanity/Global Village -build this summer, and although I am not a North American, my wife and children are, and they will be coming with me. Should I worry about Columbians' attitudes towards my family?
Pertti Karjalainen
Product Manager
Northern Lights Software
Fairfax, CA USA
www.northernlightssoftware.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform